IWpfTextViewLineCollection.GetMarkerGeometry 方法 (SnapshotSpan, Boolean, Thickness)

创建指定快照范围的标记图形。

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI.Wpf(在 Microsoft.VisualStudio.Text.UI.Wpf.dll 中)

语法

声明
Function GetMarkerGeometry ( _
    bufferSpan As SnapshotSpan, _
    clipToViewport As Boolean, _
    padding As Thickness _
) As Geometry
Geometry GetMarkerGeometry(
    SnapshotSpan bufferSpan,
    bool clipToViewport,
    Thickness padding
)
Geometry^ GetMarkerGeometry(
    SnapshotSpan bufferSpan, 
    bool clipToViewport, 
    Thickness padding
)
abstract GetMarkerGeometry : 
        bufferSpan:SnapshotSpan * 
        clipToViewport:bool * 
        padding:Thickness -> Geometry
function GetMarkerGeometry(
    bufferSpan : SnapshotSpan, 
    clipToViewport : boolean, 
    padding : Thickness
) : Geometry

参数

  • clipToViewport
    类型:Boolean

    如果为 true,创建的几何图形是剪辑到视区。

  • padding
    类型:Thickness

    会应用于中的元素的每个行基类型的空白。

返回值

类型:Geometry
在 bufferSpan包含所有区域该格式化文本的 Geometry

备注

如果范围在一行外扩展,则 GetLineMarkerGeometry 用于计算标记图形,否则该方法使用 GetTextMarkerGeometry

.NET Framework 安全性

请参阅

参考

IWpfTextViewLineCollection 接口

GetMarkerGeometry 重载

Microsoft.VisualStudio.Text.Editor 命名空间