共用方式為


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

建立指定快照集 span 的標記幾何。

命名空間:  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
A Geometry ,包含已格式化的文字中的所有界限bufferSpan。

備註

如果範圍超出一行,然後GetLineMarkerGeometry用來計算的資料標記幾何,否則這個方法會使用GetTextMarkerGeometry

.NET Framework 安全性

請參閱

參考

IWpfTextViewLineCollection 介面

GetMarkerGeometry 多載

Microsoft.VisualStudio.Text.Editor 命名空間