TextPattern.DocumentRange Propriedade

Definição

Obtém um intervalo de texto que inclui o texto principal de um documento.

public:
 property System::Windows::Automation::Text::TextPatternRange ^ DocumentRange { System::Windows::Automation::Text::TextPatternRange ^ get(); };
public System.Windows.Automation.Text.TextPatternRange DocumentRange { get; }
member this.DocumentRange : System.Windows.Automation.Text.TextPatternRange
Public ReadOnly Property DocumentRange As TextPatternRange

Valor de Propriedade

Exemplos

No exemplo de código seguinte, a variável membro TargetTextPattern é um TextPattern objeto obtido de um fornecedor de texto de interesse.

// Initialize the document range for the text of the document.
documentRange = targetTextPattern.DocumentRange;
' Initialize the document range for the text of the document.
documentRange = targetTextPattern.DocumentRange

Observações

Alguns textos auxiliares, como cabeçalhos, notas de rodapé ou anotações, podem não estar incluídos.

Aplica-se a

Ver também