C# Класс InternalHelper.TextLibraryCount

Utilities used by TextPattern testing both within UIA Verify and without
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CastNativeWindowHandleToIntPtr ( AutomationElement element ) : IntPtr

Gets WindowHandle from an AutomationElement

IdentifySupportedTextUnits ( AutomationElement element, TextUnit &supportedTextUnits ) : void

Identifies supported text units. Some units will map upwards TextUnit.Page, for example, maps up to a Document for all controls/providers except Word/Office Win32: By control Avalon: TBD Trident: TBD Office: TBD

IsCriticalException ( Exception exception ) : bool

Checks for critical nonrecoverable errors

IsRichEdit ( AutomationElement autoElement ) : bool

Identify if we're on RichEdit control or not

ValidateArgumentNonNull ( object obj, string argName ) : void
Win32CountLines ( AutomationElement element ) : int

Приватные методы

Метод Описание
CountParagraphs ( string actualText ) : int
CountTextUnit ( TextUnit tu, TextPatternRange rangeToCount ) : int
CountTextUnitsInRange ( TextPatternRange rangeToCount, TextUnit supportedTextUnits, int &numberOfTextUnits ) : void
GetClassName ( AutomationElement autoElement ) : string
GetClassName ( AutomationElement autoElement, string &className, string &localizedControlType ) : void
IsTrailingCRLF ( AutomationElement autoElement, string text ) : uint
SetProvider ( string _typeOfProvider ) : void
Win32CountTextUnit ( TextUnit textUnit, TextPatternRange rangeToCount ) : int
win32_IdentifySupportedTextUnits ( AutomationElement element, TextUnit targetUnit ) : TextUnit
wpf_IdentifySupportedTextUnits ( AutomationElement element, TextUnit targetUnit ) : TextUnit

Описание методов

CastNativeWindowHandleToIntPtr() публичный статический Метод

Gets WindowHandle from an AutomationElement
public static CastNativeWindowHandleToIntPtr ( AutomationElement element ) : IntPtr
element System.Windows.Automation.AutomationElement
Результат System.IntPtr

IdentifySupportedTextUnits() публичный статический Метод

Identifies supported text units. Some units will map upwards TextUnit.Page, for example, maps up to a Document for all controls/providers except Word/Office Win32: By control Avalon: TBD Trident: TBD Office: TBD
public static IdentifySupportedTextUnits ( AutomationElement element, TextUnit &supportedTextUnits ) : void
element System.Windows.Automation.AutomationElement
supportedTextUnits TextUnit
Результат void

IsCriticalException() статический публичный Метод

Checks for critical nonrecoverable errors
static public IsCriticalException ( Exception exception ) : bool
exception System.Exception
Результат bool

IsRichEdit() публичный статический Метод

Identify if we're on RichEdit control or not
public static IsRichEdit ( AutomationElement autoElement ) : bool
autoElement System.Windows.Automation.AutomationElement
Результат bool

ValidateArgumentNonNull() статический публичный Метод

static public ValidateArgumentNonNull ( object obj, string argName ) : void
obj object
argName string
Результат void

Win32CountLines() публичный статический Метод

public static Win32CountLines ( AutomationElement element ) : int
element System.Windows.Automation.AutomationElement
Результат int