MS\Internal\Automation\UiaCoreApi.cs (71)
254SafePatternHandle hpatternobj = UiaHPatternObjectFromVariant(val);
398internal static SafePatternHandle UiaGetPatternProvider(SafeNodeHandle hnode, int patternId)
400SafePatternHandle hobj;
531internal static SafePatternHandle UiaHPatternObjectFromVariant(object var)
533SafePatternHandle hobj;
713internal static void DockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition)
718internal static void ExpandCollapsePattern_Collapse(SafePatternHandle hobj)
723internal static void ExpandCollapsePattern_Expand(SafePatternHandle hobj)
728internal static SafeNodeHandle GridPattern_GetItem(SafePatternHandle hobj, int row, int column)
741internal static void InvokePattern_Invoke(SafePatternHandle hobj)
746internal static string MultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId)
753internal static void MultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId)
758internal static void RangeValuePattern_SetValue(SafePatternHandle hobj, double val)
763internal static void ScrollItemPattern_ScrollIntoView(SafePatternHandle hobj)
768internal static void ScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
773internal static void ScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent)
778internal static void SelectionItemPattern_AddToSelection(SafePatternHandle hobj)
783internal static void SelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj)
788internal static void SelectionItemPattern_Select(SafePatternHandle hobj)
793internal static void TogglePattern_Toggle(SafePatternHandle hobj)
798internal static void TransformPattern_Move(SafePatternHandle hobj, double x, double y)
803internal static void TransformPattern_Resize(SafePatternHandle hobj, double width, double height)
808internal static void TransformPattern_Rotate(SafePatternHandle hobj, double degrees)
813internal static void ValuePattern_SetValue(SafePatternHandle hobj, string pVal)
818internal static void WindowPattern_Close(SafePatternHandle hobj)
823internal static void WindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state)
828internal static bool WindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds)
836internal static void SynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType)
842internal static void SynchronizedInputPattern_Cancel(SafePatternHandle hobj)
848internal static void VirtualizedItemPattern_Realize(SafePatternHandle hobj)
853internal static SafeNodeHandle ItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle hNode, int propertyId, object value)
866internal static SafeTextRangeHandle [] TextPattern_GetSelection(SafePatternHandle hobj)
882internal static SafeTextRangeHandle[] TextPattern_GetVisibleRanges(SafePatternHandle hobj)
898internal static SafeTextRangeHandle TextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement)
911internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point)
924internal static SafeTextRangeHandle TextPattern_get_DocumentRange(SafePatternHandle hobj)
937internal static SupportedTextSelection TextPattern_get_SupportedTextSelection(SafePatternHandle hobj)
1220private static extern int RawUiaGetPatternProvider(SafeNodeHandle hnode, int patternId, out SafePatternHandle phobj);
1256private static extern int RawUiaHPatternObjectFromVariant([MarshalAs(UnmanagedType.Struct)] ref object var, out SafePatternHandle hnode);
1288private static extern int RawDockPattern_SetDockPosition(SafePatternHandle hobj, DockPosition dockPosition);
1291private static extern int RawExpandCollapsePattern_Collapse(SafePatternHandle hobj);
1294private static extern int RawExpandCollapsePattern_Expand(SafePatternHandle hobj);
1297private static extern int RawGridPattern_GetItem(SafePatternHandle hobj, int row, int column, out SafeNodeHandle pResult);
1300private static extern int RawInvokePattern_Invoke(SafePatternHandle hobj);
1303private static extern int RawMultipleViewPattern_GetViewName(SafePatternHandle hobj, int viewId, [MarshalAs(UnmanagedType.BStr)] out string ppStr);
1306private static extern int RawMultipleViewPattern_SetCurrentView(SafePatternHandle hobj, int viewId);
1309private static extern int RawRangeValuePattern_SetValue(SafePatternHandle hobj, double val);
1312private static extern int RawScrollItemPattern_ScrollIntoView(SafePatternHandle hobj);
1315private static extern int RawScrollPattern_Scroll(SafePatternHandle hobj, ScrollAmount horizontalAmount, ScrollAmount verticalAmount);
1318private static extern int RawScrollPattern_SetScrollPercent(SafePatternHandle hobj, double horizontalPercent, double verticalPercent);
1321private static extern int RawSelectionItemPattern_AddToSelection(SafePatternHandle hobj);
1324private static extern int RawSelectionItemPattern_RemoveFromSelection(SafePatternHandle hobj);
1327private static extern int RawSelectionItemPattern_Select(SafePatternHandle hobj);
1330private static extern int RawTogglePattern_Toggle(SafePatternHandle hobj);
1333private static extern int RawTransformPattern_Move(SafePatternHandle hobj, double x, double y);
1336private static extern int RawTransformPattern_Resize(SafePatternHandle hobj, double width, double height);
1339private static extern int RawTransformPattern_Rotate(SafePatternHandle hobj, double degrees);
1342private static extern int RawValuePattern_SetValue(SafePatternHandle hobj, [MarshalAs(UnmanagedType.LPWStr)] string pVal);
1345private static extern int RawWindowPattern_Close(SafePatternHandle hobj);
1348private static extern int RawWindowPattern_SetWindowVisualState(SafePatternHandle hobj, WindowVisualState state);
1351private static extern int RawWindowPattern_WaitForInputIdle(SafePatternHandle hobj, int milliseconds, out bool pResult);
1354private static extern int RawSynchronizedInputPattern_StartListening(SafePatternHandle hobj, SynchronizedInputType inputType);
1357private static extern int RawSynchronizedInputPattern_Cancel(SafePatternHandle hobj);
1360private static extern int RawVirtualizedItemPattern_Realize(SafePatternHandle hobj);
1363private static extern int RawItemContainerPattern_FindItemByProperty(SafePatternHandle hobj, SafeNodeHandle startAfter, int propertyId, object value, out SafeNodeHandle result);
1370private static extern int RawTextPattern_GetSelection(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result);
1373private static extern int RawTextPattern_GetVisibleRanges(SafePatternHandle hobj, [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)]out object[] result);
1376private static extern int RawTextPattern_RangeFromChild(SafePatternHandle hobj, SafeNodeHandle childElement, out SafeTextRangeHandle result);
1379private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result);
1382private static extern int RawTextPattern_get_DocumentRange(SafePatternHandle hobj, out SafeTextRangeHandle result);
1385private static extern int RawTextPattern_get_SupportedTextSelection(SafePatternHandle hobj, out SupportedTextSelection result);