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