IFormattedLineSource.FormatLineInVisualBuffer 方法
格式化 ITextSnapshotLine 中的文字和裝飾。
命名空間: Microsoft.VisualStudio.Text.Formatting
組件: Microsoft.VisualStudio.Text.UI.Wpf (在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)
語法
'宣告
Function FormatLineInVisualBuffer ( _
visualLine As ITextSnapshotLine _
) As Collection(Of IFormattedLine)
Collection<IFormattedLine> FormatLineInVisualBuffer(
ITextSnapshotLine visualLine
)
Collection<IFormattedLine^>^ FormatLineInVisualBuffer(
ITextSnapshotLine^ visualLine
)
abstract FormatLineInVisualBuffer :
visualLine:ITextSnapshotLine -> Collection<IFormattedLine>
function FormatLineInVisualBuffer(
visualLine : ITextSnapshotLine
) : Collection<IFormattedLine>
參數
visualLine
類型:Microsoft.VisualStudio.Text.ITextSnapshotLine要格式化的行。
傳回值
類型:Collection<IFormattedLine>
該行的格式化文字。
備註
IFormattedLine物件是IDisposable ,必須明確處置。 提供ITextSnapshotLine因為視覺項目習慣生活在該緩衝區中,必須屬於的視覺的緩衝區,快照集。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。