IWpfTextView.GetAdornmentLayer Method (String)

 

Gets a named IAdornmentLayer.

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

IAdornmentLayer GetAdornmentLayer(
	string name
)

Parameters

name
Type: System.String

The name of the layer.

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IAdornmentLayer

An instance of the layer in this view.

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.

Return to top
Show: