Document.ReadabilityStatistics Property (2007 System)

Gets a ReadabilityStatistics collection that represents the readability statistics for the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property ReadabilityStatistics As ReadabilityStatistics
'Usage
Dim instance As Document 
Dim value As ReadabilityStatistics 

value = instance.ReadabilityStatistics
[BrowsableAttribute(false)]
public ReadabilityStatistics ReadabilityStatistics { get; }
[BrowsableAttribute(false)]
public:
property ReadabilityStatistics^ ReadabilityStatistics {
    ReadabilityStatistics^ get ();
}
public function get ReadabilityStatistics () : ReadabilityStatistics

Property Value

Type: ReadabilityStatistics
A ReadabilityStatistics collection that represents the readability statistics for the document.

Examples

The following code example adds text to the first paragraph in the document, and then displays a message that shows the number of words in the document by using the ReadabilityStatistics property.

This example is for a document-level customization.

Private Sub DocumentReadabilityStatistics()
    Me.Paragraphs(1).Range.InsertParagraphBefore()
    Me.Paragraphs(1).Range.Text = "This is sample text." 
    Dim Index As Object = 1

    Dim Name As String = Me.ReadabilityStatistics.Item(Index).Name.ToString()
    Dim Value As String = Me.ReadabilityStatistics.Item(Index).Value.ToString()

    MessageBox.Show(Name & ": " & Value)
End Sub
private void DocumentReadabilityStatistics()
{
    this.Paragraphs[1].Range.InsertParagraphBefore();
    this.Paragraphs[1].Range.Text = "This is sample text.";
    object Index = 1;

    string Name = this.ReadabilityStatistics.get_Item(
        ref Index).Name.ToString();
    string Value = this.ReadabilityStatistics.get_Item(
        ref Index).Value.ToString();

    MessageBox.Show(Name + ": " + Value);

}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace