Version

DocumentViewBase Class Members

The following tables list the members exposed by DocumentViewBase.

Public Properties
 NameDescription
Public PropertyCurrentSnapshotReturns the Infragistics.Documents.TextDocumentSnapshot used to generate the current set of VisibleLines  
Public PropertyDocumentReturns the Infragistics.Documents.TextDocument associated with the view.  
Public PropertyFirstVisibleLineNumberReturns/sets the zero-based line index of the first visible DocumentViewLine displayed in the EditorDocumentView  
Public PropertyHorizontalLineOffsetReturns/sets the zero-based horizontal pixel offset of the DocumentViewLines displayed in the EditorDocumentView  
Public PropertyLastVisibleLineNumberReturns the zero-based line index of the last visible DocumentViewLine displayed in the EditorDocumentView (read only)  
Public PropertySyntaxEditorReturns the XamSyntaxEditor associated with the view.  
Public PropertyTextAreaBoundsReturns the bounding rectangle of the text area (the area within the scrollbars and margins where the text is rendered) in control coordinates. (read only)  
Public PropertyVisibleLinesReturns a read only observable collection of DocumentViewLines that represent the lines currently displayed in the DocumentViewBase (read-only)  
Public Methods
 NameDescription
Public MethodBringLineIntoViewEnsures that the document line with the specified zero-based line index is in view.  
Public MethodGetIsLineInViewReturns whether the document line with the specified zero-based line index is in view.  
Public MethodGetMarginAreaHeightReturns the height of the margin area in the specified EditorDocumentViewMarginLocation.  
Public MethodGetMarginAreaWidthReturns the width of the margin area in the specified EditorDocumentViewMarginLocation.  
Public MethodGoToLineNumberPositions the requested line so that it is in view (and in the middle of the display if possible).  
Public MethodGoToOffsetReloads the display so that the line containing the specified document offset is in view and in the middle of the display if possible, and the caret is positioned at the specified offset.  
Public MethodGoToTextLocationReloads the display so that the line containing the specified Infragistics.Documents.Parsing.TextLocation is in view (and in the middle of the display if possible), and the caret is positioned at the specified character position.  
Public MethodSnapshotPointFromScreenPointReturns the Infragistics.Documents.SnapshotPoint that is closest to the specified screen point (expressed in text area coordinates).  
Public MethodTextAreaPointFromViewPointTranslates a point from view (which contains the scrollbars, margins, text area) coordinates to text area coordinates.  
Public MethodTextLocationFromScreenPointReturns the Infragistics.Documents.Parsing.TextLocation that is closest to the specified screen point (expressed in text area coordinates).  
Public MethodViewLineFromLineIndexReturns the DocumentViewLine that corresponds to the to the document line with the specified zero-based line index, or null if the document line with the specified zero-based line index is out of view.  
Public MethodViewLineFromVerticalOffsetReturns the DocumentViewLine that contains the specified vertical pixel offset (in text coordinates) from the top of the view.  
Public MethodViewPointFromTextAreaPointTranslates a point from text area coordinates to view (which contains the scrollbars, margins, text area) coordinates.  
Protected Methods
 NameDescription
Protected Internal MethodOnAmbientPropertyChangedCalled when one or more ambient font or color properties have changed.  
Protected Internal MethodOnDocumentChangedCalled when the XamSyntaxEditor.Document property has changed.  
Protected Internal MethodOnDocumentTextChangedCalled when the document text has changed  
Protected Internal MethodOnDocumentTextChangingCalled when the document text is about to change  
Protected Internal MethodOnDocumentTextLoadedCalled when text is loaded into the XamSyntaxEditor.Document as the result of a call to Infragistics.Documents.TextDocument.Load(System.String).  
Protected Internal MethodOnLanguageChangedCalled when the Language associated with the Infragistics.Documents.TextDocument changes.  
Protected MethodOnLayoutChangedUsed to invoke the LayoutChanged event.  
Protected Internal MethodOnLoadedCalled when the DocumentViewBase is loaded.  
Protected Internal MethodOnServiceAddedCalled when a service has been registered on the associated Infragistics.Documents.TextDocument's Language.  
Protected Internal MethodOnServiceRemovedCalled when a service has been unregistered on the associated Infragistics.Documents.TextDocument's Language.  
Protected Internal MethodOnUnloadedCalled when the DocumentViewBase is unloaded.  
Protected Internal MethodRefreshLayerLayoutRefreshes the layout of the Infragistics.Controls.Editors.Primitives.AdornmentLayer described by the specified AdornmentLayerInfo  
Protected Internal MethodRefreshLayersLayoutRefreshes the layout of all Infragistics.Controls.Editors.Primitives.AdornmentLayers associated with this DocumentViewBase  
Public Events
 NameDescription
Public EventLayoutChangedRaised after the layout of the lines in the DocumentViewBase has changed.  
See Also