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
marginName
Type: StringThe name of the ITextViewMargin.
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
- 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.