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)

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft