private IntPtr DuplicateRange(AccessibilityRange range) { return(Interop.ControlDevel.DaliAccessibilityNewRange(range.StartOffset, range.EndOffset, range.Content)); }
private static IntPtr AccessibilityGetSelectionWrapper(IntPtr self, int selectionNumber) { AccessibilityRange range = GetInterfaceFromRefObject <IAtspiText>(self).AccessibilityGetSelection(selectionNumber); return(DuplicateAccessibilityRange(range)); }
private static IntPtr AccessibilityGetTextAtOffsetWrapper(IntPtr self, int offset, int boundary) { AccessibilityRange range = GetInterfaceFromRefObject <IAtspiText>(self).AccessibilityGetTextAtOffset(offset, (AccessibilityTextBoundary)boundary); return(DuplicateAccessibilityRange(range)); }
private static IntPtr AccessibilityGetSelectionWrapper(IntPtr self, int selectionNumber) { AccessibilityRange range = GetViewFromRefObject(self).AccessibilityGetSelection(selectionNumber); return(DuplicateAccessibilityRange(range)); }