TextPattern クラス

定義

テキストを含むコントロールを表します。

public ref class TextPattern : System::Windows::Automation::BasePattern
public class TextPattern : System.Windows.Automation.BasePattern
type TextPattern = class
    inherit BasePattern
Public Class TextPattern
Inherits BasePattern
継承
TextPattern

注釈

TextPattern クラスは、特定のUI オートメーション プロバイダーにのみ存在するテキスト機能を提供しない場合があります。 このような一意の高度な機能の場合、AutomationElement クラスは、UI オートメーション クライアントが対応するネイティブ オブジェクト モデルにアクセスするためのメソッドを提供します。

フィールド

名前 説明
AnimationStyleAttribute

テキスト範囲の AnimationStyle 属性を識別します。

BackgroundColorAttribute

テキスト範囲の BackgroundColor 属性を識別します。

BulletStyleAttribute

テキスト範囲の BulletStyle 属性を識別します。

CapStyleAttribute

テキスト範囲の CapStyle 属性を識別します。

CultureAttribute

テキスト範囲の Culture (CultureInfo) 属性を、フランス語 (fr) ではなく French-Switzerland (fr-CH) など、サブ言語レベルまで識別します。

FontNameAttribute

テキスト範囲の FontName 属性を識別します。

FontSizeAttribute

テキスト範囲の FontSize 属性を識別します。

FontWeightAttribute

テキスト範囲の FontWeight 属性を識別します。

ForegroundColorAttribute

テキスト範囲の ForegroundColor (COLORREF) 属性を識別します。

HorizontalTextAlignmentAttribute

テキスト範囲の HorizontalTextAlignment 属性を識別します。

IndentationFirstLineAttribute

テキスト範囲の IndentationFirstLine (TextIndent) 属性を識別します。

IndentationLeadingAttribute

テキスト範囲の IndentationLeading(TextIndent) 属性を識別します。

IndentationTrailingAttribute

テキスト範囲の IndentationTrailing(TextIndent) 属性を識別します。

IsHiddenAttribute

テキスト範囲の IsHidden 属性を識別します。

IsItalicAttribute

テキスト範囲の IsItalic (FontStyle) 属性を識別します。

IsReadOnlyAttribute

テキスト範囲の IsReadOnly 属性を識別します。

IsSubscriptAttribute

テキスト範囲の IsSubscript (FontVariants) 属性を識別します。

IsSuperscriptAttribute

テキスト範囲の IsSuperscript (FontVariants) 属性を識別します。

MarginBottomAttribute

テキスト範囲の MarginBottom (PageSettings) 属性を識別します。

MarginLeadingAttribute

テキスト範囲の MarginLeading (PageSettings) 属性を識別します。

MarginTopAttribute

テキスト範囲の MarginTop (PageSettings) 属性を識別します。

MarginTrailingAttribute

テキスト範囲の MarginTrailing (PageSettings) 属性を識別します。

MixedAttributeValue

リッチ エディット コントロールのテキスト範囲で、特定の属性の値が異なるかどうかを識別します。

OutlineStylesAttribute

テキスト範囲の OutlineStyles (OutlineStyles) 属性を識別します。

OverlineColorAttribute

テキスト範囲の OverlineColor 属性を識別します。

OverlineStyleAttribute

テキスト範囲の OverlineStyle (TextDecorationLineStyle) 属性を識別します。

Pattern

TextPattern パターンを識別します。

StrikethroughColorAttribute

テキスト範囲の StrikethroughColor 属性を識別します。

StrikethroughStyleAttribute

テキスト範囲の StrikethroughStyle (TextDecorationLineStyle) 属性を識別します。

TabsAttribute

テキスト範囲の Tabs 属性を識別します。

TextChangedEvent

テキスト コンテンツが変更されるたびに発生するイベントを識別します。

TextFlowDirectionsAttribute

テキスト範囲の TextFlowDirections (FlowDirections) 属性を識別します。

TextSelectionChangedEvent

テキストの選択が変更されたときに発生するイベントを識別します。

UnderlineColorAttribute

テキスト範囲の UnderlineColor 属性を識別します。

UnderlineStyleAttribute

テキスト範囲の UnderlineStyle (TextDecorationLineStyle) 属性を識別します。

プロパティ

名前 説明
DocumentRange

文書のメイン テキストを囲むテキスト範囲を取得します。

SupportedTextSelection

テキスト プロバイダーが選択範囲をサポートしているかどうかを示す値を取得します。サポートされている場合は、選択範囲の種類をサポートします。

メソッド

名前 説明
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetSelection()

現在のテキストの選択または選択に関連付けられている不整合なテキスト範囲のコレクションを取得します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
GetVisibleRanges()

各テキスト範囲が最初の部分的に表示される行から最後に部分的に表示される行の末尾まで開始するテキスト コンテナーから、不整合なテキスト範囲の配列を取得します。

MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
RangeFromChild(AutomationElement)

画像、ハイパーリンク、Microsoft Excel スプレッドシート、その他の埋め込みオブジェクトなどの子要素を囲むテキスト範囲を取得します。

RangeFromPoint(Point)

指定した画面座標に最も近い縮退 (空) テキスト範囲を返します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください