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
'宣言
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
- marginName
Type: System.String
The name of the ITextViewMargin.
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
- 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.