Atspi.Text.GetSelection C# (CSharp) Method

GetSelection() public method

public GetSelection ( int selectionNum, int &startOffset, int &endOffset ) : void
selectionNum int
startOffset int
endOffset int
return void
        public void GetSelection(int selectionNum, out int startOffset, out int endOffset)
        {
            proxy.GetSelection (selectionNum, out startOffset, out endOffset);
        }

Usage Example

コード例 #1
0
        public ITextPatternRange [] GetSelection()
        {
            int nSelections = text.NSelections;

            TextRangePattern [] range = new TextRangePattern [nSelections];
            for (int i = 0; i < nSelections; i++)
            {
                int startOffset, endOffset;
                text.GetSelection(i, out startOffset, out endOffset);
                range [i] = new TextRangePattern(accessible, startOffset, endOffset);
            }
            return(range);
        }
All Usage Examples Of Atspi.Text::GetSelection