Condividi tramite


IWpfTextViewMargin Interface

Represents WPF text view margins.

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

Syntax

'Declaration
Public Interface IWpfTextViewMargin _
    Inherits ITextViewMargin, IDisposable
public interface IWpfTextViewMargin : ITextViewMargin, 
    IDisposable
public interface class IWpfTextViewMargin : ITextViewMargin, 
    IDisposable
type IWpfTextViewMargin =  
    interface 
        interface ITextViewMargin 
        interface IDisposable 
    end
public interface IWpfTextViewMargin extends ITextViewMargin, IDisposable

The IWpfTextViewMargin type exposes the following members.

Properties

  Name Description
Public property Enabled Determines whether the margin is enabled. (Inherited from ITextViewMargin.)
Public property MarginSize Gets the size of the margin. (Inherited from ITextViewMargin.)
Public property VisualElement Gets the FrameworkElement that renders the margin.

Top

Methods

  Name Description
Public method Dispose Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public method GetTextViewMargin Gets the ITextViewMargin with the specified margin name. (Inherited from ITextViewMargin.)

Top

Remarks

For more information about margins, see the "Margins" section of Inside the Editor. For more information about margins, see the "Extending Margins and Scrollbars" section in Editor Extension Points.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace