Partager via


ITextView.LayoutChanged Event

Definition

Occurs whenever the text displayed in the view changes.

public:
 event EventHandler<Microsoft::VisualStudio::Text::Editor::TextViewLayoutChangedEventArgs ^> ^ LayoutChanged;
event EventHandler<Microsoft.VisualStudio.Text.Editor.TextViewLayoutChangedEventArgs> LayoutChanged;
member this.LayoutChanged : EventHandler<Microsoft.VisualStudio.Text.Editor.TextViewLayoutChangedEventArgs> 
Event LayoutChanged As EventHandler(Of TextViewLayoutChangedEventArgs) 

Event Type

Remarks

This event is raised whenever the rendered text displayed in the ITextView changes.

It is raised whenever the view does a layout (which happens when DisplayTextLineContainingBufferPosition is called or in response to text or classification changes).

It ia also raised whenever the view scrolls horizontally or when its size changes.

Applies to