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