49 references to TomUnit
UIAutomationClientsideProviders (49)
MS\Internal\AutomationProxies\Tom.cs (10)
106
int Expand(
TomUnit
unit);
115
int EndOf(
TomUnit
unit, TomExtend extend);
116
int Move(
TomUnit
unit, int count);
117
int MoveStart(
TomUnit
unit, int count);
118
int MoveEnd(
TomUnit
unit, int count);
169
new int Expand(
TomUnit
unit);
178
new int EndOf(
TomUnit
unit, TomExtend extend);
179
new int Move(
TomUnit
unit, int count);
180
new int MoveStart(
TomUnit
unit, int count);
181
new int MoveEnd(
TomUnit
unit, int count);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (7)
392
range.Expand(
TomUnit
.tomWindow);
405
range.MoveStart(
TomUnit
.tomWord, 1);
419
rangeAdjust.MoveEnd(
TomUnit
.tomCharacter, -1);
420
range.MoveStart(
TomUnit
.tomCharacter, -1);
433
range.MoveEnd(
TomUnit
.tomWord, -1);
445
if (range.MoveEnd(
TomUnit
.tomCharacter, 1) == 0)
449
rangeAdjust.MoveStart(
TomUnit
.tomCharacter, 1);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (32)
84
charRange.Expand(
TomUnit
.tomCharFormat);
87
paraRange.Expand(
TomUnit
.tomParaFormat);
113
return FindAttributeBackwards(attribute, val,
TomUnit
.tomParaFormat);
117
return FindAttributeForwards(attribute, val,
TomUnit
.tomParaFormat);
124
return FindAttributeBackwards(attribute, val,
TomUnit
.tomCharFormat);
128
return FindAttributeForwards(attribute, val,
TomUnit
.tomCharFormat);
203
range.EndOf(
TomUnit
.tomLine, TomExtend.tomExtend);
213
range.Move(
TomUnit
.tomLine, 1);
214
range.EndOf(
TomUnit
.tomLine, TomExtend.tomExtend);
384
range.MoveEnd(
TomUnit
.tomLine, 1);
473
private ITextRangeProvider FindAttributeForwards(AutomationTextAttribute attribute, object val,
TomUnit
unit)
524
private ITextRangeProvider FindAttributeBackwards(AutomationTextAttribute attribute, object val,
TomUnit
unit)
741
for (ITextRange unitRange = FirstUnit(range); NextUnit(end, unitRange,
TomUnit
.tomCharFormat); )
1142
int charMoved = charRange.MoveStart(
TomUnit
.tomCharFormat, 1);
1145
int paraMoved = paraRange.MoveStart(
TomUnit
.tomParaFormat, 1);
1171
int charMoved = charRange.MoveStart(
TomUnit
.tomCharFormat, -1);
1174
int paraMoved = paraRange.MoveStart(
TomUnit
.tomParaFormat, -1);
1200
int charMoved = charRange.MoveEnd(
TomUnit
.tomCharFormat, 1);
1203
int paraMoved = paraRange.MoveEnd(
TomUnit
.tomParaFormat, 1);
1229
int charMoved = charRange.MoveEnd(
TomUnit
.tomCharFormat, -1);
1232
int paraMoved = paraRange.MoveEnd(
TomUnit
.tomParaFormat, -1);
1267
private static
TomUnit
TomUnitFromTextUnit(TextUnit unit, string name)
1272
return
TomUnit
.tomCharacter;
1275
return
TomUnit
.tomWord;
1278
return
TomUnit
.tomLine;
1281
return
TomUnit
.tomParagraph;
1285
return
TomUnit
.tomStory;
1325
private static bool NextUnit(int end, ITextRange subrange,
TomUnit
unit)
1347
private static bool PreviousUnit(int start, ITextRange subrange,
TomUnit
unit)
1380
range.MoveEnd(
TomUnit
.tomCharacter, -1);
1397
range.MoveStart(
TomUnit
.tomCharacter, 1);
1402
range.MoveEnd(
TomUnit
.tomCharacter, -1);