uiautomation
uiautomation.uiautomation.TextPattern クラス

公開メンバ関数

def __init__ (self, pattern=None)
 
TextRange DocumentRange (self)
 
bool SupportedTextSelection (self)
 
List[TextRangeGetSelection (self)
 
List[TextRangeGetVisibleRanges (self)
 
TextRange RangeFromChild (self, child)
 
TextRange RangeFromPoint (self, int x, int y)
 

公開変数類

 pattern
 

構築子と解体子

◆ __init__()

def uiautomation.uiautomation.TextPattern.__init__ (   self,
  pattern = None 
)
Refer https://docs.microsoft.com/en-us/windows/desktop/api/uiautomationclient/nn-uiautomationclient-iuiautomationtextpattern

メソッド詳解

◆ DocumentRange()

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

◆ GetSelection()

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

◆ GetVisibleRanges()

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

◆ RangeFromChild()

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

◆ RangeFromPoint()

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

◆ SupportedTextSelection()

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

メンバ詳解

◆ pattern

uiautomation.uiautomation.TextPattern.pattern

このクラス詳解は次のファイルから抽出されました: