IWpfTextViewHost.GetTextViewMargin Method

Gets the ITextViewMargin with the specified margin name that is attached to an edge of this IWpfTextView.

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

Syntax

'Declaration
Function GetTextViewMargin ( _
    marginName As String _
) As IWpfTextViewMargin
IWpfTextViewMargin GetTextViewMargin(
    string marginName
)
IWpfTextViewMargin^ GetTextViewMargin(
    String^ marginName
)
abstract GetTextViewMargin : 
        marginName:string -> IWpfTextViewMargin
function GetTextViewMargin(
    marginName : String
) : IWpfTextViewMargin

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
The ITextViewMargin with a name that matches marginName.

Exceptions

Exception Condition
ArgumentNullException

marginName is nulla null reference (Nothing in Visual Basic).

Remarks

This method should be called only after the Loaded event is raised.

.NET Framework Security

See Also

Reference

IWpfTextViewHost Interface

Microsoft.VisualStudio.Text.Editor Namespace