Provides statistics and counters about the current document in EditorControl.
For a list of all members of this type, see Information Members.
System.Object
Aspose.Editor.Desktop.Information
[Visual Basic]
NotInheritable Public Class Information
[C#]public sealed class Information
Remarks
You do not create instances of this class directly. Use the Information property of EditorControl to access current information about the document.
Example
Shows how to obtain current information from the editor and display it in the status bar of your application.
[C#]
if (editorControl.Document != null)
{
statusBar.Text = string.Format(
"Page {0}/{1}, Line {2}, Col {3}",
editorControl.Selection.PageNumber,
editorControl.Information.PageCount,
editorControl.Selection.LineNumber,
editorControl.Selection.CharacterNumber);
}
else
{
statusBar.Text = "";
}
[Visual Basic]
If Not editorControl.Document Is Nothing Then
statusBar.Text = String.Format("Page {0}/{1}, Line {2}, Col {3}", editorControl.Selection.PageNumber, editorControl.Information.PageCount, editorControl.Selection.LineNumber, editorControl.Selection.CharacterNumber)
Else
statusBar.Text = ""
End IfRequirements
Namespace: Aspose.Editor.Desktop
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
Information Members | Aspose.Editor.Desktop Namespace | EditorControl