共用方式為


PredefinedMarginNames Class

Definition

Specifies the names of the pre-defined margins supplied by Visual Studio.

public ref class PredefinedMarginNames abstract sealed
public ref class PredefinedMarginNames abstract sealed
class PredefinedMarginNames abstract sealed
public static class PredefinedMarginNames
type PredefinedMarginNames = class
Public Class PredefinedMarginNames
Inheritance
PredefinedMarginNames

Remarks

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

Fields

Bottom

The margin below the text view.

BottomControl

A horizontal margin container in the Bottom margin that contains the HorizontalScrollBarContainer.

BottomRightCorner

The margin to the right of the "Bottom" margin and below the "Right" margin.

ChrMargin

The margin to the right of the horizontal scrollbar containing the current character index of the caret on it's given line.

ColMargin

The margin to the right of the horizontal scrollbar containing the current column location of the caret on it's given line.

FileHealthIndicator

The margin to the left of the horizontal scroll bar that hosts a file health indicator.

Glyph

The margin to the left of the text view that shows breakpoint and other glyphs.

HorizontalScrollBar

The standard horizontal scrollbar.

HorizontalScrollBarContainer

The container margin that contains the HorizontalScrollBar by default.

IndentationCharacterMargin

The margin to the right of the horizontal scrollbar describing what character gets inserted when you press tab.

InsertModeMargin

The margin to the right of the horizontal scrollbar containing the state of Insert/Overwrite mode.

Left

The margin to the left of the text view.

LeftSelection

The margin to the left of the text view that implements mouse handlers for line selection. This behavior is inherited by margins contained in the left selection margin.

LineEndingMargin

The margin to the right of the horizontal scrollbar containing the state of newlines in the view.

LineNumber

The margin to the left of the text view that shows line numbers.

Outlining

The margin to the left of the text view that allows collapsing and expansion of outlining regions.

OverviewChangeTracking

Name of the margin that shows changes in the entire file.

OverviewError

Name of the margin that shows errors in the entire file.

OverviewMark

Name of the margin that shows marks in the entire file.

OverviewSourceImage

Name of the margin that shows a zoomed-out image of the entire file.

Right

The margin to the right of the text view.

RightControl

A vertical margin container in the Right margin that contains the VerticalScrollBarContainer.

RowMargin

The margin to the right of the horizontal scrollbar containing the current caret line number.

SelectionStateMargin

The margin to the right of the horizontal scrollbar containing the state of selections in the view.

Spacer

The margin that appears between the line number and outlining margins and shows which text has changed in the current session.

Suggestion

The margin to the left of the text view that shows suggestion glyphs such as the Light Bulb.

Top

The margin above the text view.

VerticalScrollBar

The standard vertical scrollbar.

VerticalScrollBarContainer

The container margin that contains the VerticalScrollBar by default.

ZoomControl

The margin to the left of the horizontal scroll bar that hosts a zoom control for zooming the view.

Applies to