Condividi tramite


ITextViewMargin.GetTextViewMargin Method

Gets the ITextViewMargin with the specified margin name.

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

Syntax

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

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Editor.ITextViewMargin
The ITextViewMargin named marginName, or nulla null reference (Nothing in Visual Basic) if no match is found.

Exceptions

Exception Condition
ArgumentNullException

marginName is null.

Remarks

A margin must return itself if passed its name, and a container margin must forward the call to its children.

.NET Framework Security

See Also

Reference

ITextViewMargin Interface

Microsoft.VisualStudio.Text.Editor Namespace