共用方式為


TextViewInitFlags Enum

Definition

Specifies view options.

This enumeration supports a bitwise combination of its member values.

public enum class TextViewInitFlags
public enum class TextViewInitFlags
enum TextViewInitFlags
[System.Flags]
public enum TextViewInitFlags
[<System.Flags>]
type TextViewInitFlags = 
Public Enum TextViewInitFlags
Inheritance
TextViewInitFlags
Attributes

Fields

Name Value Description
VIF_DEFAULT 0

No view-owned scrollbars, and no forced settings.

VIF_SET_WIDGET_MARGIN 1

If you wish to force a certain setting upon a view, regardless of the user's editor preference settings, use these flags along with a VIEWPREFERENCES pointer into Initialize(IVsTextLines, IntPtr, UInt32, INITVIEW[]) method to force a given setting. Use the widget margin setting from the VIEWPREFERENCES structure.

VIF_SET_SELECTION_MARGIN 2

Use the selection margin setting from the VIEWPREFERENCES structure.

VIF_SET_VIRTUAL_SPACE 4

Use the virtual space setting from the VIEWPREFERENCES structure.

VIF_SET_INDENT_MODE 8

Use the auto-indent suppression setting from the VIEWPREFERENCES structure.

VIF_SET_STREAM_SEL_MODE 16

Obsolete.

VIF_SET_VISIBLE_WHITESPACE 32

Use visible white space setting.

VIF_SET_OVERTYPE 64

Use overtype mode setting.

VIF_SET_DRAGDROPMOVE 128

Use drag and drop move setting

VIF_SET_HOTURLS 256

Use the Hot URLs setting

VIF_HSCROLL 1048576

Indicates that the view should have a horizontal scrollbar. This value is equivalent to WS_HSCROLL from the Platform SDK. Note that this setting is different from the MDI child scrollbars used by the text editor.

VIF_VSCROLL 2097152

Indicates that the view should have a vertical scrollbar. This value is equivalent to WS_VSCROLL from the Platform SDK.

VIF_UPDATE_STATUS_BAR 4194304

Tells the view to update the status bar.

Remarks

COM Signature

From textmgr.idl:

Applies to