示例#1
0
 public int CompareEndpoints(
     TextPatternRangeEndpoint endpoint,
     TextPatternRange targetRange,
     TextPatternRangeEndpoint targetEndpoint)
 {
     Validate.ArgumentNotNull(parameter: targetRange, parameterName: nameof(targetRange));
     return(IUIAutomationTextRange.CompareEndpoints(srcEndPoint: UiaConvert.Convert(textPatternRangeEndpoint: endpoint), range: targetRange.IUIAutomationTextRange, targetEndPoint: UiaConvert.Convert(textPatternRangeEndpoint: targetEndpoint)));
 }
示例#2
0
 public void MoveEndpointByRange(
     TextPatternRangeEndpoint endpoint,
     TextPatternRange targetRange,
     TextPatternRangeEndpoint targetEndpoint)
 {
     Validate.ArgumentNotNull(parameter: targetRange, parameterName: nameof(targetRange));
     IUIAutomationTextRange.MoveEndpointByRange(srcEndPoint: UiaConvert.Convert(textPatternRangeEndpoint: endpoint), range: targetRange.IUIAutomationTextRange, targetEndPoint: UiaConvert.Convert(textPatternRangeEndpoint: targetEndpoint));
 }
示例#3
0
 public void ExpandToEnclosingUnit(TextUnit unit)
 {
     IUIAutomationTextRange.ExpandToEnclosingUnit(TextUnit: UiaConvert.Convert(textUnit: unit));
 }
示例#4
0
 public int MoveEndpointByUnit(TextPatternRangeEndpoint endpoint, TextUnit unit, int count)
 {
     return(IUIAutomationTextRange.MoveEndpointByUnit(endpoint: UiaConvert.Convert(textPatternRangeEndpoint: endpoint), unit: UiaConvert.Convert(textUnit: unit), count: count));
 }
示例#5
0
 public int Move(TextUnit unit, int count)
 {
     return(IUIAutomationTextRange.Move(unit: UiaConvert.Convert(textUnit: unit), count: count));
 }