TextViewLayoutChangedEventArgs 构造函数

定义

初始化 TextViewLayoutChangedEventArgs 的新实例。

public:
 TextViewLayoutChangedEventArgs(Microsoft::VisualStudio::Text::Editor::ViewState ^ oldState, Microsoft::VisualStudio::Text::Editor::ViewState ^ newState, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^> ^ newOrReformattedLines, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^> ^ translatedLines);
public TextViewLayoutChangedEventArgs (Microsoft.VisualStudio.Text.Editor.ViewState oldState, Microsoft.VisualStudio.Text.Editor.ViewState newState, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Formatting.ITextViewLine> newOrReformattedLines, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Formatting.ITextViewLine> translatedLines);
new Microsoft.VisualStudio.Text.Editor.TextViewLayoutChangedEventArgs : Microsoft.VisualStudio.Text.Editor.ViewState * Microsoft.VisualStudio.Text.Editor.ViewState * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Formatting.ITextViewLine> * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Formatting.ITextViewLine> -> Microsoft.VisualStudio.Text.Editor.TextViewLayoutChangedEventArgs
Public Sub New (oldState As ViewState, newState As ViewState, newOrReformattedLines As IList(Of ITextViewLine), translatedLines As IList(Of ITextViewLine))

参数

oldState
ViewState

布局之前的视图状态。

newState
ViewState

布局后的视图状态。

newOrReformattedLines
IList<ITextViewLine>

新的或重新格式化的列表 ITextViewLine

translatedLines
IList<ITextViewLine>

已转换的列表 ITextViewLine

例外

ArgumentNullException

oldStatenewStatetranslatedLinesnewOrReformattedLines 为 null。

适用于