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
'Déclaration
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
- 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.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.