コード例 #1
0
 private IntPtr DuplicateRange(AccessibilityRange range)
 {
     return(Interop.ControlDevel.DaliAccessibilityNewRange(range.StartOffset, range.EndOffset, range.Content));
 }
コード例 #2
0
        private static IntPtr AccessibilityGetSelectionWrapper(IntPtr self, int selectionNumber)
        {
            AccessibilityRange range = GetInterfaceFromRefObject <IAtspiText>(self).AccessibilityGetSelection(selectionNumber);

            return(DuplicateAccessibilityRange(range));
        }
コード例 #3
0
        private static IntPtr AccessibilityGetTextAtOffsetWrapper(IntPtr self, int offset, int boundary)
        {
            AccessibilityRange range = GetInterfaceFromRefObject <IAtspiText>(self).AccessibilityGetTextAtOffset(offset, (AccessibilityTextBoundary)boundary);

            return(DuplicateAccessibilityRange(range));
        }
コード例 #4
0
        private static IntPtr AccessibilityGetSelectionWrapper(IntPtr self, int selectionNumber)
        {
            AccessibilityRange range = GetViewFromRefObject(self).AccessibilityGetSelection(selectionNumber);

            return(DuplicateAccessibilityRange(range));
        }