IWpfTextView.GetAdornmentLayer Method

Gets a named IAdornmentLayer.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function GetAdornmentLayer ( _
    name As String _
) As IAdornmentLayer
IAdornmentLayer GetAdornmentLayer(
    string name
)
IAdornmentLayer^ GetAdornmentLayer(
    String^ name
)
abstract GetAdornmentLayer : 
        name:string -> IAdornmentLayer
function GetAdornmentLayer(
    name : String
) : IAdornmentLayer

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IAdornmentLayer
An instance of the layer in this view.

Remarks

Layer names must be defined as AdornmentLayerDefinition component parts.

The layer names "Text", "Caret", and "Selection" are reserved and cannot be requested by using this method.

.NET Framework Security

See Also

Reference

IWpfTextView Interface

Microsoft.VisualStudio.Text.Editor Namespace