Version 24.2 (latest)

DocumentViewBase Class Methods

For a list of all members of this type, see DocumentViewBase members.

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  
See Also