TextViewLayoutChangedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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
oldState、newState、translatedLines 或 newOrReformattedLines 为 null。