本文整理汇总了C#中System.Windows.Automation.AutomationProperty.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# AutomationProperty.ToString方法的具体用法?C# AutomationProperty.ToString怎么用?C# AutomationProperty.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Automation.AutomationProperty
的用法示例。
在下文中一共展示了AutomationProperty.ToString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FindChild
public AutomationElement FindChild(AutomationProperty searchBy, object value, AutomationElement retrieveControl = null)
{
var ret = GetControlTileEnable(searchBy, value, false, 30, retrieveControl);
if (ret != null)
return ret;
else
throw new ControlNotFoundException(searchBy.ToString() + ":" + value.ToString());
}
示例2: GetProgrammaticName
//.........这里部分代码省略.........
} else if (prop == AEIds.LocalizedControlTypeProperty) {
return "LocalizedControlTypeProperty";
} else if (prop == AEIds.NameProperty) {
return "NameProperty";
} else if (prop == AEIds.OrientationProperty) {
return "OrientationProperty";
} else if (prop == DockPatternIdentifiers.DockPositionProperty) {
return "DockPatternIdentifiers.DockPositionProperty";
} else if (prop == ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty) {
return "ExpandCollapsePatternIdentifiers.ExpandCollapseStateProperty";
} else if (prop == GridItemPatternIdentifiers.ColumnProperty) {
return "GridItemPatternIdentifiers.ColumnProperty";
} else if (prop == GridItemPatternIdentifiers.ColumnSpanProperty) {
return "GridItemPatternIdentifiers.ColumnSpanProperty";
} else if (prop == GridItemPatternIdentifiers.ContainingGridProperty) {
return "GridItemPatternIdentifiers.ContainingGridProperty";
} else if (prop == GridItemPatternIdentifiers.RowProperty) {
return "GridItemPatternIdentifiers.RowProperty";
} else if (prop == GridItemPatternIdentifiers.RowSpanProperty) {
return "GridItemPatternIdentifiers.RowSpanProperty";
} else if (prop == GridPatternIdentifiers.ColumnCountProperty) {
return "GridPatternIdentifiers.ColumnCountProperty";
} else if (prop == GridPatternIdentifiers.RowCountProperty) {
return "GridPatternIdentifiers.RowCountProperty";
} else if (prop == MultipleViewPatternIdentifiers.CurrentViewProperty) {
return "MultipleViewPatternIdentifiers.CurrentViewProperty";
} else if (prop == MultipleViewPatternIdentifiers.SupportedViewsProperty) {
return "MultipleViewPatternIdentifiers.SupportedViewsProperty";
} else if (prop == RangeValuePatternIdentifiers.IsReadOnlyProperty) {
return "RangeValuePatternIdentifiers.IsReadOnlyProperty";
} else if (prop == RangeValuePatternIdentifiers.LargeChangeProperty) {
return "RangeValuePatternIdentifiers.LargeChangeProperty";
} else if (prop == RangeValuePatternIdentifiers.MaximumProperty) {
return "RangeValuePatternIdentifiers.MaximumProperty";
} else if (prop == RangeValuePatternIdentifiers.MinimumProperty) {
return "RangeValuePatternIdentifiers.MinimumProperty";
} else if (prop == RangeValuePatternIdentifiers.SmallChangeProperty) {
return "RangeValuePatternIdentifiers.SmallChangeProperty";
} else if (prop == RangeValuePatternIdentifiers.ValueProperty) {
return "RangeValuePatternIdentifiers.ValueProperty";
} else if (prop == ScrollPatternIdentifiers.HorizontallyScrollableProperty) {
return "ScrollPatternIdentifiers.HorizontallyScrollableProperty";
} else if (prop == ScrollPatternIdentifiers.HorizontalScrollPercentProperty) {
return "ScrollPatternIdentifiers.HorizontalScrollPercentProperty";
} else if (prop == ScrollPatternIdentifiers.HorizontalViewSizeProperty) {
return "ScrollPatternIdentifiers.HorizontalViewSizeProperty";
} else if (prop == ScrollPatternIdentifiers.VerticallyScrollableProperty) {
return "ScrollPatternIdentifiers.VerticallyScrollableProperty";
} else if (prop == ScrollPatternIdentifiers.VerticalScrollPercentProperty) {
return "ScrollPatternIdentifiers.VerticalScrollPercentProperty";
} else if (prop == ScrollPatternIdentifiers.VerticalViewSizeProperty) {
return "ScrollPatternIdentifiers.VerticalViewSizeProperty";
} else if (prop == SelectionItemPatternIdentifiers.IsSelectedProperty) {
return "SelectionItemPatternIdentifiers.IsSelectedProperty";
} else if (prop == SelectionItemPatternIdentifiers.SelectionContainerProperty) {
return "SelectionItemPatternIdentifiers.SelectionContainerProperty";
} else if (prop == SelectionPatternIdentifiers.CanSelectMultipleProperty) {
return "SelectionPatternIdentifiers.CanSelectMultipleProperty";
} else if (prop == SelectionPatternIdentifiers.IsSelectionRequiredProperty) {
return "SelectionPatternIdentifiers.IsSelectionRequiredProperty";
} else if (prop == SelectionPatternIdentifiers.SelectionProperty) {
return "SelectionPatternIdentifiers.SelectionProperty";
} else if (prop == TableItemPatternIdentifiers.ColumnHeaderItemsProperty) {
return "TableItemPatternIdentifiers.ColumnHeaderItemsProperty";
} else if (prop == TableItemPatternIdentifiers.RowHeaderItemsProperty) {
return "TableItemPatternIdentifiers.RowHeaderItemsProperty";
} else if (prop == TablePatternIdentifiers.ColumnHeadersProperty) {
return "TablePatternIdentifiers.ColumnHeadersProperty";
} else if (prop == TablePatternIdentifiers.RowHeadersProperty) {
return "TablePatternIdentifiers.RowHeadersProperty";
} else if (prop == TablePatternIdentifiers.RowOrColumnMajorProperty) {
return "TablePatternIdentifiers.RowOrColumnMajorProperty";
} else if (prop == TogglePatternIdentifiers.ToggleStateProperty) {
return "TogglePatternIdentifiers.ToggleStateProperty";
} else if (prop == TransformPatternIdentifiers.CanMoveProperty) {
return "TransformPatternIdentifiers.CanMoveProperty";
} else if (prop == TransformPatternIdentifiers.CanResizeProperty) {
return "TransformPatternIdentifiers.CanResizeProperty";
} else if (prop == TransformPatternIdentifiers.CanRotateProperty) {
return "TransformPatternIdentifiers.CanRotateProperty";
} else if (prop == ValuePatternIdentifiers.IsReadOnlyProperty) {
return "ValuePatternIdentifiers.IsReadOnlyProperty";
} else if (prop == ValuePatternIdentifiers.ValueProperty) {
return "ValuePatternIdentifiers.ValueProperty";
} else if (prop == WindowPatternIdentifiers.CanMaximizeProperty) {
return "WindowPatternIdentifiers.CanMaximizeProperty";
} else if (prop == WindowPatternIdentifiers.CanMinimizeProperty) {
return "WindowPatternIdentifiers.CanMinimizeProperty";
} else if (prop == WindowPatternIdentifiers.IsModalProperty) {
return "WindowPatternIdentifiers.IsModalProperty";
} else if (prop == WindowPatternIdentifiers.IsTopmostProperty) {
return "WindowPatternIdentifiers.IsTopmostProperty";
} else if (prop == WindowPatternIdentifiers.WindowInteractionStateProperty) {
return "WindowPatternIdentifiers.WindowInteractionStateProperty";
} else if (prop == WindowPatternIdentifiers.WindowVisualStateProperty) {
return "WindowPatternIdentifiers.WindowVisualStateProperty";
} else {
return prop.ToString ();
}
}