• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UIAutomationClient类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中UIAutomationClient的典型用法代码示例。如果您正苦于以下问题:C# UIAutomationClient类的具体用法?C# UIAutomationClient怎么用?C# UIAutomationClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UIAutomationClient类属于命名空间,在下文中一共展示了UIAutomationClient类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TextPatternRange

 internal TextPatternRange(UIAutomationClient.IUIAutomationTextRange range, TextPattern pattern)
 {
     Debug.Assert(range != null);
     Debug.Assert(pattern != null);
     this._range = range;
     this._pattern = pattern;
 }
开发者ID:van800,项目名称:UIAComWrapper,代码行数:7,代码来源:TextRange.cs


示例2: AutomationFocusChangedEventArgs

 void UIAutomationClient.IUIAutomationFocusChangedEventHandler.HandleFocusChangedEvent(
     UIAutomationClient.IUIAutomationElement sender)
 {
     // Can't set the arguments -- they come from a WinEvent handler.
     AutomationFocusChangedEventArgs args = new AutomationFocusChangedEventArgs(0, 0);
     _focusHandler(AutomationElement.Wrap(sender), args);
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:7,代码来源:ClientEventList.cs


示例3: Wrap

 internal static TextPatternRange Wrap(UIAutomationClient.IUIAutomationTextRange range, TextPattern pattern)
 {
     Debug.Assert(pattern != null);
     if (range == null)
     {
         return null;
     }
     else
     {
         return new TextPatternRange(range, pattern);
     }
 }
开发者ID:apetrovskiy,项目名称:STUPS,代码行数:12,代码来源:TextRange.cs


示例4: AutomationEventArgs

 void UIAutomationClient.IUIAutomationEventHandler.HandleAutomationEvent(
     UIAutomationClient.IUIAutomationElement sender, int eventId)
 {
     AutomationEventArgs args;
     if (eventId != WindowPatternIdentifiers.WindowClosedEvent.Id)
     {
         args = new AutomationEventArgs(AutomationEvent.LookupById(eventId));
     }
     else
     {
         args = new WindowClosedEventArgs((int[])sender.GetRuntimeId());
     }
     _basicHandler(AutomationElement.Wrap(sender), args);
 }
开发者ID:van800,项目名称:UIAComWrapper,代码行数:14,代码来源:ClientEventList.cs


示例5: Wrap

 internal static Condition Wrap(UIAutomationClient.IUIAutomationCondition obj)
 {
     if (obj is UIAutomationClient.IUIAutomationBoolCondition)
         return new BoolCondition((UIAutomationClient.IUIAutomationBoolCondition)obj);
     else if (obj is UIAutomationClient.IUIAutomationAndCondition)
         return new AndCondition((UIAutomationClient.IUIAutomationAndCondition)obj);
     else if (obj is UIAutomationClient.IUIAutomationOrCondition)
         return new OrCondition((UIAutomationClient.IUIAutomationOrCondition)obj);
     else if (obj is UIAutomationClient.IUIAutomationNotCondition)
         return new NotCondition((UIAutomationClient.IUIAutomationNotCondition)obj);
     else if (obj is UIAutomationClient.IUIAutomationPropertyCondition)
         return new PropertyCondition((UIAutomationClient.IUIAutomationPropertyCondition)obj);
     else
         throw new ArgumentException("obj");
 }
开发者ID:RyuaNerin,项目名称:UIAComWrapper,代码行数:15,代码来源:Conditions.cs


示例6: ConvertToElementArray

 internal static AutomationElement[] ConvertToElementArray(UIAutomationClient.IUIAutomationElementArray array)
 {
     AutomationElement[] elementArray;
     if (array != null)
     {
         elementArray = new AutomationElement[array.Length];
         for (int i = 0; i < array.Length; i++)
         {
             elementArray[i] = AutomationElement.Wrap(array.GetElement(i));
         }
     }
     else
     {
         elementArray = null;
     }
     return elementArray;
 }
开发者ID:rambli,项目名称:UIAComWrapper,代码行数:17,代码来源:Utility.cs


示例7: TextPattern2

 private TextPattern2(AutomationElement el, UIAutomationClient.IUIAutomationTextPattern2 pattern, UIAutomationClient.IUIAutomationTextPattern basePattern, bool cached)
     : base(el, basePattern, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
开发者ID:RyuaNerin,项目名称:UIAComWrapper,代码行数:6,代码来源:TextPattern.cs


示例8: Wrap

 internal static AutomationElementCollection Wrap(UIAutomationClient.IUIAutomationElementArray obj)
 {
     return (obj == null) ? null : new AutomationElementCollection(obj);
 }
开发者ID:apetrovskiy,项目名称:STUPS,代码行数:4,代码来源:AutomationElementCollection.cs


示例9: AutomationElementCollectionEnumerator

 internal AutomationElementCollectionEnumerator(UIAutomationClient.IUIAutomationElementArray obj)
 {
     Debug.Assert(obj != null);
     this._obj = obj;
     this._cElem = obj.Length;
 }
开发者ID:apetrovskiy,项目名称:STUPS,代码行数:6,代码来源:AutomationElementCollection.cs


示例10: AutomationElement

 internal AutomationElement(UIAutomationClient.IUIAutomationElement obj)
 {
     Debug.Assert(obj != null);
     this._obj = obj;
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:5,代码来源:AutomationElement.cs


示例11: AutomationElementCollection

 internal AutomationElementCollection(UIAutomationClient.IUIAutomationElementArray obj)
 {
     Debug.Assert(obj != null);
     this._obj = obj;
 }
开发者ID:apetrovskiy,项目名称:STUPS,代码行数:5,代码来源:AutomationElementCollection.cs


示例12: DockPattern

 private DockPattern(AutomationElement el, UIAutomationClient.IUIAutomationDockPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:6,代码来源:DockPattern.cs


示例13: VirtualizedItemPattern

 private VirtualizedItemPattern(AutomationElement el, UIAutomationClient.IUIAutomationVirtualizedItemPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
开发者ID:van800,项目名称:UIAComWrapper,代码行数:6,代码来源:VirtualizedPatterns.cs


示例14: ConvertToRect

 internal static System.Windows.Rect ConvertToRect(UIAutomationClient.tagRECT rc)
 {
     return new System.Windows.Rect(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top);
 }
开发者ID:rambli,项目名称:UIAComWrapper,代码行数:4,代码来源:Utility.cs


示例15: TablePattern

 private TablePattern(AutomationElement el, UIAutomationClient.IUIAutomationTablePattern tablePattern, UIAutomationClient.IUIAutomationGridPattern gridPattern, bool cached)
     : base(el, gridPattern, cached)
 {
     Debug.Assert(tablePattern != null);
     this._pattern = tablePattern;
 }
开发者ID:apetrovskiy,项目名称:STUPS,代码行数:6,代码来源:TablePattern.cs


示例16: Wrap

 internal static TextPatternRange[] Wrap(UIAutomationClient.IUIAutomationTextRangeArray ranges, TextPattern pattern)
 {
     if (ranges == null)
     {
         return null;
     }
     TextPatternRange[] rangeArray = new TextPatternRange[ranges.Length];
     for (int i = 0; i < ranges.Length; i++)
     {
         rangeArray[i] = new TextPatternRange(ranges.GetElement(i), pattern);
     }
     return rangeArray;
 }
开发者ID:van800,项目名称:UIAComWrapper,代码行数:13,代码来源:TextRange.cs


示例17: AutomationPropertyChangedEventArgs

 void UIAutomationClient.IUIAutomationPropertyChangedEventHandler.HandlePropertyChangedEvent(
     UIAutomationClient.IUIAutomationElement sender, 
     int propertyId, 
     object newValue)
 {
     AutomationProperty property = AutomationProperty.LookupById(propertyId);
     object wrappedObj = Utility.WrapObjectAsProperty(property, newValue);
     AutomationPropertyChangedEventArgs args = new AutomationPropertyChangedEventArgs(
         property,
         null,
         wrappedObj);
     this._propChangeHandler(AutomationElement.Wrap(sender), args);
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:13,代码来源:ClientEventList.cs


示例18: TreeWalker

 internal TreeWalker(UIAutomationClient.IUIAutomationTreeWalker obj)
 {
     Debug.Assert(obj != null);
     _obj = obj;
 }
开发者ID:geeksree,项目名称:cSharpGeeks,代码行数:5,代码来源:TreeWalker.cs


示例19: SpreadsheetItemPattern

 private SpreadsheetItemPattern(AutomationElement el, UIAutomationClient.IUIAutomationSpreadsheetItemPattern pattern, bool cached)
     : base(el, cached)
 {
     Debug.Assert(pattern != null);
     this._pattern = pattern;
 }
开发者ID:RyuaNerin,项目名称:UIAComWrapper,代码行数:6,代码来源:SpreadsheetPattern.cs


示例20: AndCondition

 internal AndCondition(UIAutomationClient.IUIAutomationAndCondition obj)
 {
     Debug.Assert(obj != null);
     this._obj = obj;
 }
开发者ID:van800,项目名称:UIAComWrapper,代码行数:5,代码来源:Conditions.cs



注:本文中的UIAutomationClient类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UIBarButtonItem类代码示例发布时间:2022-05-24
下一篇:
C# UIAtlas.Sprite类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap