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
Fields
AutoIndentPropertyDefinition
public static readonly Property<bool, View> AutoIndentPropertyDefinition
Field Value
BackgroundPatternPropertyDefinition
public static readonly Property<BackgroundPatternType, View> BackgroundPatternPropertyDefinition
Field Value
ChangeCaseSignal
Signal Descriptor for OnChangeCase.
public static readonly Signal<View, View.ChangeCaseSignalArgs> ChangeCaseSignal
Field Value
ChangeNumberSignal
Signal Descriptor for OnChangeNumber.
public static readonly Signal<View, View.ChangeNumberSignalArgs> ChangeNumberSignal
Field Value
CompletionPropertyDefinition
public static readonly Property<Completion?, View> CompletionPropertyDefinition
Field Value
EnableSnippetsPropertyDefinition
public static readonly Property<bool, View> EnableSnippetsPropertyDefinition
Field Value
HighlightCurrentLinePropertyDefinition
public static readonly Property<bool, View> HighlightCurrentLinePropertyDefinition
Field Value
IndentOnTabPropertyDefinition
public static readonly Property<bool, View> IndentOnTabPropertyDefinition
Field Value
IndentWidthPropertyDefinition
public static readonly Property<int, View> IndentWidthPropertyDefinition
Field Value
IndenterPropertyDefinition
public static readonly Property<Indenter, View> IndenterPropertyDefinition
Field Value
InsertSpacesInsteadOfTabsPropertyDefinition
public static readonly Property<bool, View> InsertSpacesInsteadOfTabsPropertyDefinition
Field Value
JoinLinesSignal
Signal Descriptor for OnJoinLines.
public static readonly Signal<View> JoinLinesSignal
Field Value
LineMarkActivatedSignal
Signal Descriptor for OnLineMarkActivated.
public static readonly Signal<View, View.LineMarkActivatedSignalArgs> LineMarkActivatedSignal
Field Value
MoveLinesSignal
Signal Descriptor for OnMoveLines.
public static readonly Signal<View, View.MoveLinesSignalArgs> MoveLinesSignal
Field Value
MoveToMatchingBracketSignal
Signal Descriptor for OnMoveToMatchingBracket.
public static readonly Signal<View, View.MoveToMatchingBracketSignalArgs> MoveToMatchingBracketSignal
Field Value
MoveWordsSignal
Signal Descriptor for OnMoveWords.
public static readonly Signal<View, View.MoveWordsSignalArgs> MoveWordsSignal
Field Value
RightMarginPositionPropertyDefinition
public static readonly Property<uint, View> RightMarginPositionPropertyDefinition
Field Value
ShowCompletionSignal
Signal Descriptor for OnShowCompletion.
public static readonly Signal<View> ShowCompletionSignal
Field Value
ShowLineMarksPropertyDefinition
public static readonly Property<bool, View> ShowLineMarksPropertyDefinition
Field Value
ShowLineNumbersPropertyDefinition
public static readonly Property<bool, View> ShowLineNumbersPropertyDefinition
Field Value
ShowRightMarginPropertyDefinition
public static readonly Property<bool, View> ShowRightMarginPropertyDefinition
Field Value
SmartBackspacePropertyDefinition
public static readonly Property<bool, View> SmartBackspacePropertyDefinition
Field Value
SmartHomeEndPropertyDefinition
public static readonly Property<SmartHomeEndType, View> SmartHomeEndPropertyDefinition
Field Value
SmartHomeEndSignal
Signal Descriptor for OnSmartHomeEnd.
public static readonly Signal<View, View.SmartHomeEndSignalArgs> SmartHomeEndSignal
Field Value
SpaceDrawerPropertyDefinition
public static readonly Property<SpaceDrawer?, View> SpaceDrawerPropertyDefinition
Field Value
TabWidthPropertyDefinition
public static readonly Property<uint, View> TabWidthPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
AutoIndent
public bool AutoIndent { get; set; }
Property Value
BackgroundPattern
public BackgroundPatternType BackgroundPattern { get; set; }
Property Value
Completion
public Completion? Completion { get; }
Property Value
EnableSnippets
public bool EnableSnippets { get; set; }
Property Value
Hadjustment
public Adjustment? Hadjustment { get; set; }
Property Value
HighlightCurrentLine
public bool HighlightCurrentLine { get; set; }
Property Value
HscrollPolicy
public ScrollablePolicy HscrollPolicy { get; set; }
Property Value
IndentOnTab
public bool IndentOnTab { get; set; }
Property Value
IndentWidth
public int IndentWidth { get; set; }
Property Value
Indenter
public Indenter Indenter { get; set; }
Property Value
InsertSpacesInsteadOfTabs
public bool InsertSpacesInsteadOfTabs { get; set; }
Property Value
RightMarginPosition
public uint RightMarginPosition { get; set; }
Property Value
ShowLineMarks
public bool ShowLineMarks { get; set; }
Property Value
ShowLineNumbers
public bool ShowLineNumbers { get; set; }
Property Value
ShowRightMargin
public bool ShowRightMargin { get; set; }
Property Value
SmartBackspace
public bool SmartBackspace { get; set; }
Property Value
SmartHomeEnd
public SmartHomeEndType SmartHomeEnd { get; set; }
Property Value
SpaceDrawer
public SpaceDrawer? SpaceDrawer { get; }
Property Value
TabWidth
public uint TabWidth { get; set; }
Property Value
Vadjustment
public Adjustment? Vadjustment { get; set; }
Property Value
VscrollPolicy
public ScrollablePolicy VscrollPolicy { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetAutoIndent()
public bool GetAutoIndent()
Returns
GetBackgroundPattern()
public BackgroundPatternType GetBackgroundPattern()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetCompletion()
public Completion GetCompletion()
Returns
GetEnableSnippets()
public bool GetEnableSnippets()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetGutter(TextWindowType)
public Gutter GetGutter(TextWindowType windowType)
Parameters
windowType
TextWindowType
Returns
GetHadjustment()
public Adjustment? GetHadjustment()
Returns
GetHighlightCurrentLine()
public bool GetHighlightCurrentLine()
Returns
GetHover()
public Hover GetHover()
Returns
GetHscrollPolicy()
public ScrollablePolicy GetHscrollPolicy()
Returns
GetIndentOnTab()
public bool GetIndentOnTab()
Returns
GetIndentWidth()
public int GetIndentWidth()
Returns
GetIndenter()
public Indenter? GetIndenter()
Returns
GetInsertSpacesInsteadOfTabs()
public bool GetInsertSpacesInsteadOfTabs()
Returns
GetMarkAttributes(string, ref int)
public MarkAttributes GetMarkAttributes(string category, ref int priority)
Parameters
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetRightMarginPosition()
public uint GetRightMarginPosition()
Returns
GetShowLineMarks()
public bool GetShowLineMarks()
Returns
GetShowLineNumbers()
public bool GetShowLineNumbers()
Returns
GetShowRightMargin()
public bool GetShowRightMargin()
Returns
GetSmartBackspace()
public bool GetSmartBackspace()
Returns
GetSmartHomeEnd()
public SmartHomeEndType GetSmartHomeEnd()
Returns
GetSpaceDrawer()
public SpaceDrawer GetSpaceDrawer()
Returns
GetTabWidth()
public uint GetTabWidth()
Returns
GetVadjustment()
public Adjustment? GetVadjustment()
Returns
GetVisualColumn(TextIter)
public uint GetVisualColumn(TextIter iter)
Parameters
iter
TextIter
Returns
GetVscrollPolicy()
public ScrollablePolicy GetVscrollPolicy()
Returns
IndentLines(TextIter, TextIter)
public void IndentLines(TextIter start, TextIter end)
Parameters
New()
public static View New()
Returns
NewWithBuffer(Buffer)
public static View NewWithBuffer(Buffer buffer)
Parameters
buffer
Buffer
Returns
PushSnippet(Snippet, TextIter?)
public void PushSnippet(Snippet snippet, TextIter? location)
Parameters
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
AccessiblenextSibling
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
stringattributes
MarkAttributespriority
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
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
AccessibleTextContentChangestart
uintend
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
OnChangeNumber
public event SignalHandler<View, View.ChangeNumberSignalArgs> OnChangeNumber
Event Type
OnJoinLines
public event SignalHandler<View> OnJoinLines
Event Type
OnLineMarkActivated
public event SignalHandler<View, View.LineMarkActivatedSignalArgs> OnLineMarkActivated
Event Type
OnMoveLines
public event SignalHandler<View, View.MoveLinesSignalArgs> OnMoveLines
Event Type
OnMoveToMatchingBracket
public event SignalHandler<View, View.MoveToMatchingBracketSignalArgs> OnMoveToMatchingBracket
Event Type
OnMoveWords
public event SignalHandler<View, View.MoveWordsSignalArgs> OnMoveWords
Event Type
OnShowCompletion
public event SignalHandler<View> OnShowCompletion
Event Type
OnSmartHomeEnd
public event SignalHandler<View, View.SmartHomeEndSignalArgs> OnSmartHomeEnd