Table of Contents

Class View

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class View : TextView, IObject, INotifyPropertyChanged, IDisposable, Accessible, AccessibleText, Buildable, ConstraintTarget, Scrollable, IHandle, GTypeProvider
Inheritance
View
Implements
Derived
Inherited Members

Constructors

View()

public View()

View(params ConstructArgument[])

protected View(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

View(IntPtr, bool)

protected View(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AutoIndentPropertyDefinition

public static readonly Property<bool, View> AutoIndentPropertyDefinition

Field Value

Property<bool, View>

BackgroundPatternPropertyDefinition

public static readonly Property<BackgroundPatternType, View> BackgroundPatternPropertyDefinition

Field Value

Property<BackgroundPatternType, View>

ChangeCaseSignal

Signal Descriptor for OnChangeCase.

public static readonly Signal<View, View.ChangeCaseSignalArgs> ChangeCaseSignal

Field Value

Signal<View, View.ChangeCaseSignalArgs>

ChangeNumberSignal

Signal Descriptor for OnChangeNumber.

public static readonly Signal<View, View.ChangeNumberSignalArgs> ChangeNumberSignal

Field Value

Signal<View, View.ChangeNumberSignalArgs>

CompletionPropertyDefinition

public static readonly Property<Completion?, View> CompletionPropertyDefinition

Field Value

Property<Completion, View>

EnableSnippetsPropertyDefinition

public static readonly Property<bool, View> EnableSnippetsPropertyDefinition

Field Value

Property<bool, View>

HighlightCurrentLinePropertyDefinition

public static readonly Property<bool, View> HighlightCurrentLinePropertyDefinition

Field Value

Property<bool, View>

IndentOnTabPropertyDefinition

public static readonly Property<bool, View> IndentOnTabPropertyDefinition

Field Value

Property<bool, View>

IndentWidthPropertyDefinition

public static readonly Property<int, View> IndentWidthPropertyDefinition

Field Value

Property<int, View>

IndenterPropertyDefinition

public static readonly Property<Indenter, View> IndenterPropertyDefinition

Field Value

Property<Indenter, View>

InsertSpacesInsteadOfTabsPropertyDefinition

public static readonly Property<bool, View> InsertSpacesInsteadOfTabsPropertyDefinition

Field Value

Property<bool, View>

JoinLinesSignal

Signal Descriptor for OnJoinLines.

public static readonly Signal<View> JoinLinesSignal

Field Value

Signal<View>

LineMarkActivatedSignal

Signal Descriptor for OnLineMarkActivated.

public static readonly Signal<View, View.LineMarkActivatedSignalArgs> LineMarkActivatedSignal

Field Value

Signal<View, View.LineMarkActivatedSignalArgs>

MoveLinesSignal

Signal Descriptor for OnMoveLines.

public static readonly Signal<View, View.MoveLinesSignalArgs> MoveLinesSignal

Field Value

Signal<View, View.MoveLinesSignalArgs>

MoveToMatchingBracketSignal

Signal Descriptor for OnMoveToMatchingBracket.

public static readonly Signal<View, View.MoveToMatchingBracketSignalArgs> MoveToMatchingBracketSignal

Field Value

Signal<View, View.MoveToMatchingBracketSignalArgs>

MoveWordsSignal

Signal Descriptor for OnMoveWords.

public static readonly Signal<View, View.MoveWordsSignalArgs> MoveWordsSignal

Field Value

Signal<View, View.MoveWordsSignalArgs>

RightMarginPositionPropertyDefinition

public static readonly Property<uint, View> RightMarginPositionPropertyDefinition

Field Value

Property<uint, View>

ShowCompletionSignal

Signal Descriptor for OnShowCompletion.

public static readonly Signal<View> ShowCompletionSignal

Field Value

Signal<View>

ShowLineMarksPropertyDefinition

public static readonly Property<bool, View> ShowLineMarksPropertyDefinition

Field Value

Property<bool, View>

ShowLineNumbersPropertyDefinition

public static readonly Property<bool, View> ShowLineNumbersPropertyDefinition

Field Value

Property<bool, View>

ShowRightMarginPropertyDefinition

public static readonly Property<bool, View> ShowRightMarginPropertyDefinition

Field Value

Property<bool, View>

SmartBackspacePropertyDefinition

public static readonly Property<bool, View> SmartBackspacePropertyDefinition

Field Value

Property<bool, View>

SmartHomeEndPropertyDefinition

public static readonly Property<SmartHomeEndType, View> SmartHomeEndPropertyDefinition

Field Value

Property<SmartHomeEndType, View>

SmartHomeEndSignal

Signal Descriptor for OnSmartHomeEnd.

public static readonly Signal<View, View.SmartHomeEndSignalArgs> SmartHomeEndSignal

Field Value

Signal<View, View.SmartHomeEndSignalArgs>

SpaceDrawerPropertyDefinition

public static readonly Property<SpaceDrawer?, View> SpaceDrawerPropertyDefinition

Field Value

Property<SpaceDrawer, View>

TabWidthPropertyDefinition

public static readonly Property<uint, View> TabWidthPropertyDefinition

Field Value

Property<uint, View>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

AutoIndent

public bool AutoIndent { get; set; }

Property Value

bool

BackgroundPattern

public BackgroundPatternType BackgroundPattern { get; set; }

Property Value

BackgroundPatternType

Completion

public Completion? Completion { get; }

Property Value

Completion

EnableSnippets

public bool EnableSnippets { get; set; }

Property Value

bool

Hadjustment

public Adjustment? Hadjustment { get; set; }

Property Value

Adjustment

HighlightCurrentLine

public bool HighlightCurrentLine { get; set; }

Property Value

bool

HscrollPolicy

public ScrollablePolicy HscrollPolicy { get; set; }

Property Value

ScrollablePolicy

IndentOnTab

public bool IndentOnTab { get; set; }

Property Value

bool

IndentWidth

public int IndentWidth { get; set; }

Property Value

int

Indenter

public Indenter Indenter { get; set; }

Property Value

Indenter

InsertSpacesInsteadOfTabs

public bool InsertSpacesInsteadOfTabs { get; set; }

Property Value

bool

RightMarginPosition

public uint RightMarginPosition { get; set; }

Property Value

uint

ShowLineMarks

public bool ShowLineMarks { get; set; }

Property Value

bool

ShowLineNumbers

public bool ShowLineNumbers { get; set; }

Property Value

bool

ShowRightMargin

public bool ShowRightMargin { get; set; }

Property Value

bool

SmartBackspace

public bool SmartBackspace { get; set; }

Property Value

bool

SmartHomeEnd

public SmartHomeEndType SmartHomeEnd { get; set; }

Property Value

SmartHomeEndType

SpaceDrawer

public SpaceDrawer? SpaceDrawer { get; }

Property Value

SpaceDrawer

TabWidth

public uint TabWidth { get; set; }

Property Value

uint

Vadjustment

public Adjustment? Vadjustment { get; set; }

Property Value

Adjustment

VscrollPolicy

public ScrollablePolicy VscrollPolicy { get; set; }

Property Value

ScrollablePolicy

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetAutoIndent()

public bool GetAutoIndent()

Returns

bool

GetBackgroundPattern()

public BackgroundPatternType GetBackgroundPattern()

Returns

BackgroundPatternType

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetCompletion()

public Completion GetCompletion()

Returns

Completion

GetEnableSnippets()

public bool GetEnableSnippets()

Returns

bool

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetGutter(TextWindowType)

public Gutter GetGutter(TextWindowType windowType)

Parameters

windowType TextWindowType

Returns

Gutter

GetHadjustment()

public Adjustment? GetHadjustment()

Returns

Adjustment

GetHighlightCurrentLine()

public bool GetHighlightCurrentLine()

Returns

bool

GetHover()

public Hover GetHover()

Returns

Hover

GetHscrollPolicy()

public ScrollablePolicy GetHscrollPolicy()

Returns

ScrollablePolicy

GetIndentOnTab()

public bool GetIndentOnTab()

Returns

bool

GetIndentWidth()

public int GetIndentWidth()

Returns

int

GetIndenter()

public Indenter? GetIndenter()

Returns

Indenter

GetInsertSpacesInsteadOfTabs()

public bool GetInsertSpacesInsteadOfTabs()

Returns

bool

GetMarkAttributes(string, ref int)

public MarkAttributes GetMarkAttributes(string category, ref int priority)

Parameters

category string
priority int

Returns

MarkAttributes

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRightMarginPosition()

public uint GetRightMarginPosition()

Returns

uint

GetShowLineMarks()

public bool GetShowLineMarks()

Returns

bool

GetShowLineNumbers()

public bool GetShowLineNumbers()

Returns

bool

GetShowRightMargin()

public bool GetShowRightMargin()

Returns

bool

GetSmartBackspace()

public bool GetSmartBackspace()

Returns

bool

GetSmartHomeEnd()

public SmartHomeEndType GetSmartHomeEnd()

Returns

SmartHomeEndType

GetSpaceDrawer()

public SpaceDrawer GetSpaceDrawer()

Returns

SpaceDrawer

GetTabWidth()

public uint GetTabWidth()

Returns

uint

GetVadjustment()

public Adjustment? GetVadjustment()

Returns

Adjustment

GetVisualColumn(TextIter)

public uint GetVisualColumn(TextIter iter)

Parameters

iter TextIter

Returns

uint

GetVscrollPolicy()

public ScrollablePolicy GetVscrollPolicy()

Returns

ScrollablePolicy

IndentLines(TextIter, TextIter)

public void IndentLines(TextIter start, TextIter end)

Parameters

start TextIter
end TextIter

New()

public static View New()

Returns

View

NewWithBuffer(Buffer)

public static View NewWithBuffer(Buffer buffer)

Parameters

buffer Buffer

Returns

View

PushSnippet(Snippet, TextIter?)

public void PushSnippet(Snippet snippet, TextIter? location)

Parameters

snippet Snippet
location TextIter

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetAutoIndent(bool)

public void SetAutoIndent(bool enable)

Parameters

enable bool

SetBackgroundPattern(BackgroundPatternType)

public void SetBackgroundPattern(BackgroundPatternType backgroundPattern)

Parameters

backgroundPattern BackgroundPatternType

SetEnableSnippets(bool)

public void SetEnableSnippets(bool enableSnippets)

Parameters

enableSnippets bool

SetHadjustment(Adjustment?)

public void SetHadjustment(Adjustment? hadjustment)

Parameters

hadjustment Adjustment

SetHighlightCurrentLine(bool)

public void SetHighlightCurrentLine(bool highlight)

Parameters

highlight bool

SetHscrollPolicy(ScrollablePolicy)

public void SetHscrollPolicy(ScrollablePolicy policy)

Parameters

policy ScrollablePolicy

SetIndentOnTab(bool)

public void SetIndentOnTab(bool enable)

Parameters

enable bool

SetIndentWidth(int)

public void SetIndentWidth(int width)

Parameters

width int

SetIndenter(Indenter?)

public void SetIndenter(Indenter? indenter)

Parameters

indenter Indenter

SetInsertSpacesInsteadOfTabs(bool)

public void SetInsertSpacesInsteadOfTabs(bool enable)

Parameters

enable bool

SetMarkAttributes(string, MarkAttributes, int)

public void SetMarkAttributes(string category, MarkAttributes attributes, int priority)

Parameters

category string
attributes MarkAttributes
priority int

SetRightMarginPosition(uint)

public void SetRightMarginPosition(uint pos)

Parameters

pos uint

SetShowLineMarks(bool)

public void SetShowLineMarks(bool show)

Parameters

show bool

SetShowLineNumbers(bool)

public void SetShowLineNumbers(bool show)

Parameters

show bool

SetShowRightMargin(bool)

public void SetShowRightMargin(bool show)

Parameters

show bool

SetSmartBackspace(bool)

public void SetSmartBackspace(bool smartBackspace)

Parameters

smartBackspace bool

SetSmartHomeEnd(SmartHomeEndType)

public void SetSmartHomeEnd(SmartHomeEndType smartHomeEnd)

Parameters

smartHomeEnd SmartHomeEndType

SetTabWidth(uint)

public void SetTabWidth(uint width)

Parameters

width uint

SetVadjustment(Adjustment?)

public void SetVadjustment(Adjustment? vadjustment)

Parameters

vadjustment Adjustment

SetVscrollPolicy(ScrollablePolicy)

public void SetVscrollPolicy(ScrollablePolicy policy)

Parameters

policy ScrollablePolicy

UnindentLines(TextIter, TextIter)

public void UnindentLines(TextIter start, TextIter end)

Parameters

start TextIter
end TextIter

UpdateCaretPosition()

[Version("4.14")]
public void UpdateCaretPosition()

UpdateContents(AccessibleTextContentChange, uint, uint)

[Version("4.14")]
public void UpdateContents(AccessibleTextContentChange change, uint start, uint end)

Parameters

change AccessibleTextContentChange
start uint
end uint

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

UpdateSelectionBound()

[Version("4.14")]
public void UpdateSelectionBound()

Events

OnChangeCase

public event SignalHandler<View, View.ChangeCaseSignalArgs> OnChangeCase

Event Type

SignalHandler<View, View.ChangeCaseSignalArgs>

OnChangeNumber

public event SignalHandler<View, View.ChangeNumberSignalArgs> OnChangeNumber

Event Type

SignalHandler<View, View.ChangeNumberSignalArgs>

OnJoinLines

public event SignalHandler<View> OnJoinLines

Event Type

SignalHandler<View>

OnLineMarkActivated

public event SignalHandler<View, View.LineMarkActivatedSignalArgs> OnLineMarkActivated

Event Type

SignalHandler<View, View.LineMarkActivatedSignalArgs>

OnMoveLines

public event SignalHandler<View, View.MoveLinesSignalArgs> OnMoveLines

Event Type

SignalHandler<View, View.MoveLinesSignalArgs>

OnMoveToMatchingBracket

public event SignalHandler<View, View.MoveToMatchingBracketSignalArgs> OnMoveToMatchingBracket

Event Type

SignalHandler<View, View.MoveToMatchingBracketSignalArgs>

OnMoveWords

public event SignalHandler<View, View.MoveWordsSignalArgs> OnMoveWords

Event Type

SignalHandler<View, View.MoveWordsSignalArgs>

OnShowCompletion

public event SignalHandler<View> OnShowCompletion

Event Type

SignalHandler<View>

OnSmartHomeEnd

public event SignalHandler<View, View.SmartHomeEndSignalArgs> OnSmartHomeEnd

Event Type

SignalHandler<View, View.SmartHomeEndSignalArgs>