49 references to TomUnit
UIAutomationClientSideProviders (49)
MS\Internal\AutomationProxies\Tom.cs (10)
98
int Expand(
TomUnit
unit);
107
int EndOf(
TomUnit
unit, TomExtend extend);
108
int Move(
TomUnit
unit, int count);
109
int MoveStart(
TomUnit
unit, int count);
110
int MoveEnd(
TomUnit
unit, int count);
161
new int Expand(
TomUnit
unit);
170
new int EndOf(
TomUnit
unit, TomExtend extend);
171
new int Move(
TomUnit
unit, int count);
172
new int MoveStart(
TomUnit
unit, int count);
173
new int MoveEnd(
TomUnit
unit, int count);
MS\Internal\AutomationProxies\WindowsRichEdit.cs (7)
352
range.Expand(
TomUnit
.tomWindow);
365
range.MoveStart(
TomUnit
.tomWord, 1);
379
rangeAdjust.MoveEnd(
TomUnit
.tomCharacter, -1);
380
range.MoveStart(
TomUnit
.tomCharacter, -1);
393
range.MoveEnd(
TomUnit
.tomWord, -1);
405
if (range.MoveEnd(
TomUnit
.tomCharacter, 1) == 0)
409
rangeAdjust.MoveStart(
TomUnit
.tomCharacter, 1);
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (32)
77
charRange.Expand(
TomUnit
.tomCharFormat);
80
paraRange.Expand(
TomUnit
.tomParaFormat);
106
return FindAttributeBackwards(attribute, val,
TomUnit
.tomParaFormat);
110
return FindAttributeForwards(attribute, val,
TomUnit
.tomParaFormat);
117
return FindAttributeBackwards(attribute, val,
TomUnit
.tomCharFormat);
121
return FindAttributeForwards(attribute, val,
TomUnit
.tomCharFormat);
184
range.EndOf(
TomUnit
.tomLine, TomExtend.tomExtend);
194
range.Move(
TomUnit
.tomLine, 1);
195
range.EndOf(
TomUnit
.tomLine, TomExtend.tomExtend);
365
range.MoveEnd(
TomUnit
.tomLine, 1);
454
private ITextRangeProvider FindAttributeForwards(AutomationTextAttribute attribute, object val,
TomUnit
unit)
505
private ITextRangeProvider FindAttributeBackwards(AutomationTextAttribute attribute, object val,
TomUnit
unit)
722
for (ITextRange unitRange = FirstUnit(range); NextUnit(end, unitRange,
TomUnit
.tomCharFormat); )
1123
int charMoved = charRange.MoveStart(
TomUnit
.tomCharFormat, 1);
1126
int paraMoved = paraRange.MoveStart(
TomUnit
.tomParaFormat, 1);
1152
int charMoved = charRange.MoveStart(
TomUnit
.tomCharFormat, -1);
1155
int paraMoved = paraRange.MoveStart(
TomUnit
.tomParaFormat, -1);
1181
int charMoved = charRange.MoveEnd(
TomUnit
.tomCharFormat, 1);
1184
int paraMoved = paraRange.MoveEnd(
TomUnit
.tomParaFormat, 1);
1210
int charMoved = charRange.MoveEnd(
TomUnit
.tomCharFormat, -1);
1213
int paraMoved = paraRange.MoveEnd(
TomUnit
.tomParaFormat, -1);
1248
private static
TomUnit
TomUnitFromTextUnit(TextUnit unit, string name)
1253
return
TomUnit
.tomCharacter;
1256
return
TomUnit
.tomWord;
1259
return
TomUnit
.tomLine;
1262
return
TomUnit
.tomParagraph;
1266
return
TomUnit
.tomStory;
1306
private static bool NextUnit(int end, ITextRange subrange,
TomUnit
unit)
1328
private static bool PreviousUnit(int start, ITextRange subrange,
TomUnit
unit)
1361
range.MoveEnd(
TomUnit
.tomCharacter, -1);
1377
range.MoveStart(
TomUnit
.tomCharacter, 1);
1382
range.MoveEnd(
TomUnit
.tomCharacter, -1);