TextPattern.DocumentRange Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.