|
uiautomation
|
公開メンバ関数 | |
| def | __init__ (self, pattern=None) |
| TextRange | DocumentRange (self) |
| bool | SupportedTextSelection (self) |
| List[TextRange] | GetSelection (self) |
| List[TextRange] | GetVisibleRanges (self) |
| TextRange | RangeFromChild (self, child) |
| TextRange | RangeFromPoint (self, int x, int y) |
公開変数類 | |
| pattern | |
| def uiautomation.uiautomation.TextPattern.__init__ | ( | self, | |
pattern = None |
|||
| ) |
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nn-uiautomationclient-iuiautomationtextpattern
| TextRange uiautomation.uiautomation.TextPattern.DocumentRange | ( | self | ) |
Property DocumentRange. Call IUIAutomationTextPattern::get_DocumentRange. Return `TextRange`, a text range that encloses the main text of a document. Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-get_documentrange
| List[TextRange] uiautomation.uiautomation.TextPattern.GetSelection | ( | self | ) |
Call IUIAutomationTextPattern::GetSelection. Return List[TextRange], a list of `TextRange`, represents the currently selected text in a text-based control. Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-getselection
| List[TextRange] uiautomation.uiautomation.TextPattern.GetVisibleRanges | ( | self | ) |
Call IUIAutomationTextPattern::GetVisibleRanges.
Return List[TextRange], a list of `TextRange`, disjoint text ranges from a text-based control
where each text range represents a contiguous span of visible text.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-getvisibleranges
| TextRange uiautomation.uiautomation.TextPattern.RangeFromChild | ( | self, | |
| child | |||
| ) |
Call IUIAutomationTextPattern::RangeFromChild.
child: `Control` or its subclass.
Return `TextRange` or None, a text range enclosing a child element such as an image,
hyperlink, Microsoft Excel spreadsheet, or other embedded object.
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-rangefromchild
| TextRange uiautomation.uiautomation.TextPattern.RangeFromPoint | ( | self, | |
| int | x, | ||
| int | y | ||
| ) |
Call IUIAutomationTextPattern::RangeFromPoint. child: `Control` or its subclass. Return `TextRange` or None, the degenerate (empty) text range nearest to the specified screen coordinates. Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-rangefrompoint
| bool uiautomation.uiautomation.TextPattern.SupportedTextSelection | ( | self | ) |
Property SupportedTextSelection. Call IUIAutomationTextPattern::get_SupportedTextSelection. Return bool, specifies the type of text selection that is supported by the control. Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextpattern-get_supportedtextselection
| uiautomation.uiautomation.TextPattern.pattern |