Table of Contents

Class Text

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Text : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, AccessibleText, Buildable, ConstraintTarget, Editable, IHandle, GTypeProvider
Inheritance
Text
Implements
Inherited Members

Constructors

Text()

public Text()

Text(params ConstructArgument[])

protected Text(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Text(IntPtr, bool)

protected Text(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActivateSignal

Signal Descriptor for OnActivate.

public static readonly Signal<Text> ActivateSignal

Field Value

Signal<Text>

ActivatesDefaultPropertyDefinition

public static readonly Property<bool, Text> ActivatesDefaultPropertyDefinition

Field Value

Property<bool, Text>

AttributesPropertyDefinition

public static readonly Property<AttrList, Text> AttributesPropertyDefinition

Field Value

Property<AttrList, Text>

BackspaceSignal

Signal Descriptor for OnBackspace.

public static readonly Signal<Text> BackspaceSignal

Field Value

Signal<Text>

BufferPropertyDefinition

public static readonly Property<EntryBuffer?, Text> BufferPropertyDefinition

Field Value

Property<EntryBuffer, Text>

CopyClipboardSignal

Signal Descriptor for OnCopyClipboard.

public static readonly Signal<Text> CopyClipboardSignal

Field Value

Signal<Text>

CutClipboardSignal

Signal Descriptor for OnCutClipboard.

public static readonly Signal<Text> CutClipboardSignal

Field Value

Signal<Text>

DeleteFromCursorSignal

Signal Descriptor for OnDeleteFromCursor.

public static readonly Signal<Text, Text.DeleteFromCursorSignalArgs> DeleteFromCursorSignal

Field Value

Signal<Text, Text.DeleteFromCursorSignalArgs>

EnableEmojiCompletionPropertyDefinition

public static readonly Property<bool, Text> EnableEmojiCompletionPropertyDefinition

Field Value

Property<bool, Text>

ExtraMenuPropertyDefinition

public static readonly Property<MenuModel?, Text> ExtraMenuPropertyDefinition

Field Value

Property<MenuModel, Text>

ImModulePropertyDefinition

public static readonly Property<string?, Text> ImModulePropertyDefinition

Field Value

Property<string, Text>

InputHintsPropertyDefinition

public static readonly Property<InputHints, Text> InputHintsPropertyDefinition

Field Value

Property<InputHints, Text>

InputPurposePropertyDefinition

public static readonly Property<InputPurpose, Text> InputPurposePropertyDefinition

Field Value

Property<InputPurpose, Text>

InsertAtCursorSignal

Signal Descriptor for OnInsertAtCursor.

public static readonly Signal<Text, Text.InsertAtCursorSignalArgs> InsertAtCursorSignal

Field Value

Signal<Text, Text.InsertAtCursorSignalArgs>

InsertEmojiSignal

Signal Descriptor for OnInsertEmoji.

public static readonly Signal<Text> InsertEmojiSignal

Field Value

Signal<Text>

InvisibleCharPropertyDefinition

public static readonly Property<uint, Text> InvisibleCharPropertyDefinition

Field Value

Property<uint, Text>

InvisibleCharSetPropertyDefinition

public static readonly Property<bool, Text> InvisibleCharSetPropertyDefinition

Field Value

Property<bool, Text>

MaxLengthPropertyDefinition

public static readonly Property<int, Text> MaxLengthPropertyDefinition

Field Value

Property<int, Text>

MoveCursorSignal

Signal Descriptor for OnMoveCursor.

public static readonly Signal<Text, Text.MoveCursorSignalArgs> MoveCursorSignal

Field Value

Signal<Text, Text.MoveCursorSignalArgs>

OverwriteModePropertyDefinition

public static readonly Property<bool, Text> OverwriteModePropertyDefinition

Field Value

Property<bool, Text>

PasteClipboardSignal

Signal Descriptor for OnPasteClipboard.

public static readonly Signal<Text> PasteClipboardSignal

Field Value

Signal<Text>

PlaceholderTextPropertyDefinition

public static readonly Property<string?, Text> PlaceholderTextPropertyDefinition

Field Value

Property<string, Text>

PreeditChangedSignal

Signal Descriptor for OnPreeditChanged.

public static readonly Signal<Text, Text.PreeditChangedSignalArgs> PreeditChangedSignal

Field Value

Signal<Text, Text.PreeditChangedSignalArgs>

PropagateTextWidthPropertyDefinition

public static readonly Property<bool, Text> PropagateTextWidthPropertyDefinition

Field Value

Property<bool, Text>

ScrollOffsetPropertyDefinition

public static readonly Property<int, Text> ScrollOffsetPropertyDefinition

Field Value

Property<int, Text>

TabsPropertyDefinition

public static readonly Property<TabArray, Text> TabsPropertyDefinition

Field Value

Property<TabArray, Text>

ToggleOverwriteSignal

Signal Descriptor for OnToggleOverwrite.

public static readonly Signal<Text> ToggleOverwriteSignal

Field Value

Signal<Text>

TruncateMultilinePropertyDefinition

public static readonly Property<bool, Text> TruncateMultilinePropertyDefinition

Field Value

Property<bool, Text>

VisibilityPropertyDefinition

public static readonly Property<bool, Text> VisibilityPropertyDefinition

Field Value

Property<bool, Text>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

ActivatesDefault

public bool ActivatesDefault { get; set; }

Property Value

bool

Attributes

public AttrList Attributes { get; set; }

Property Value

AttrList

Buffer

public EntryBuffer? Buffer { get; set; }

Property Value

EntryBuffer

CursorPosition

public int CursorPosition { get; }

Property Value

int

Editable

public bool Editable { get; set; }

Property Value

bool

EnableEmojiCompletion

public bool EnableEmojiCompletion { get; set; }

Property Value

bool

EnableUndo

public bool EnableUndo { get; set; }

Property Value

bool

ExtraMenu

public MenuModel? ExtraMenu { get; set; }

Property Value

MenuModel

ImModule

public string? ImModule { get; set; }

Property Value

string

InputHints

public InputHints InputHints { get; set; }

Property Value

InputHints

InputPurpose

public InputPurpose InputPurpose { get; set; }

Property Value

InputPurpose

InvisibleChar

public uint InvisibleChar { get; set; }

Property Value

uint

InvisibleCharSet

public bool InvisibleCharSet { get; set; }

Property Value

bool

MaxLength

public int MaxLength { get; set; }

Property Value

int

MaxWidthChars

public int MaxWidthChars { get; set; }

Property Value

int

OverwriteMode

public bool OverwriteMode { get; set; }

Property Value

bool

PlaceholderText

public string? PlaceholderText { get; set; }

Property Value

string

PropagateTextWidth

public bool PropagateTextWidth { get; set; }

Property Value

bool

ScrollOffset

public int ScrollOffset { get; }

Property Value

int

SelectionBound

public int SelectionBound { get; }

Property Value

int

Tabs

public TabArray Tabs { get; set; }

Property Value

TabArray

Text_

public string? Text_ { get; set; }

Property Value

string

TruncateMultiline

public bool TruncateMultiline { get; set; }

Property Value

bool

Visibility

public bool Visibility { get; set; }

Property Value

bool

WidthChars

public int WidthChars { get; set; }

Property Value

int

Xalign

public float Xalign { get; set; }

Property Value

float

Methods

Announce(string, AccessibleAnnouncementPriority)

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

Parameters

message string
priority AccessibleAnnouncementPriority

DelegateGetAccessiblePlatformState(AccessiblePlatformState)

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

Parameters

state AccessiblePlatformState

Returns

bool

DeleteSelection()

public void DeleteSelection()

DeleteText(int, int)

public void DeleteText(int startPos, int endPos)

Parameters

startPos int
endPos int

FinishDelegate()

public void FinishDelegate()

GetAccessibleParent()

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

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetActivatesDefault()

public bool GetActivatesDefault()

Returns

bool

GetAtContext()

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

Returns

ATContext

GetAttributes()

public AttrList? GetAttributes()

Returns

AttrList

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

GetBuffer()

public EntryBuffer GetBuffer()

Returns

EntryBuffer

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetChars(int, int)

public string GetChars(int startPos, int endPos)

Parameters

startPos int
endPos int

Returns

string

GetDelegate()

public Editable? GetDelegate()

Returns

Editable

GetEditable()

public bool GetEditable()

Returns

bool

GetEnableEmojiCompletion()

public bool GetEnableEmojiCompletion()

Returns

bool

GetEnableUndo()

public bool GetEnableUndo()

Returns

bool

GetExtraMenu()

public MenuModel? GetExtraMenu()

Returns

MenuModel

GetFirstAccessibleChild()

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

Returns

Accessible

GetGType()

public static Type GetGType()

Returns

Type

GetInputHints()

public InputHints GetInputHints()

Returns

InputHints

GetInputPurpose()

public InputPurpose GetInputPurpose()

Returns

InputPurpose

GetInvisibleChar()

public uint GetInvisibleChar()

Returns

uint

GetMaxLength()

public int GetMaxLength()

Returns

int

GetMaxWidthChars()

public int GetMaxWidthChars()

Returns

int

GetNextAccessibleSibling()

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

Returns

Accessible

GetOverwriteMode()

public bool GetOverwriteMode()

Returns

bool

GetPlaceholderText()

public string? GetPlaceholderText()

Returns

string

GetPlatformState(AccessiblePlatformState)

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

Parameters

state AccessiblePlatformState

Returns

bool

GetPosition()

public int GetPosition()

Returns

int

GetPropagateTextWidth()

public bool GetPropagateTextWidth()

Returns

bool

GetSelectionBounds(out int, out int)

public bool GetSelectionBounds(out int startPos, out int endPos)

Parameters

startPos int
endPos int

Returns

bool

GetTabs()

public TabArray? GetTabs()

Returns

TabArray

GetText()

public string GetText()

Returns

string

GetTextLength()

public ushort GetTextLength()

Returns

ushort

GetTruncateMultiline()

public bool GetTruncateMultiline()

Returns

bool

GetVisibility()

public bool GetVisibility()

Returns

bool

GetWidthChars()

public int GetWidthChars()

Returns

int

GrabFocusWithoutSelecting()

public bool GrabFocusWithoutSelecting()

Returns

bool

InitDelegate()

public void InitDelegate()

InsertText(string, int, ref int)

public void InsertText(string text, int length, ref int position)

Parameters

text string
length int
position int

New()

public static Text New()

Returns

Text

NewWithBuffer(EntryBuffer)

public static Text NewWithBuffer(EntryBuffer buffer)

Parameters

buffer EntryBuffer

Returns

Text

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

SelectRegion(int, int)

public void SelectRegion(int startPos, int endPos)

Parameters

startPos int
endPos int

SetAccessibleParent(Accessible?, Accessible?)

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

Parameters

parent Accessible
nextSibling Accessible

SetActivatesDefault(bool)

public void SetActivatesDefault(bool activates)

Parameters

activates bool

SetAttributes(AttrList?)

public void SetAttributes(AttrList? attrs)

Parameters

attrs AttrList

SetBuffer(EntryBuffer)

public void SetBuffer(EntryBuffer buffer)

Parameters

buffer EntryBuffer

SetEditable(bool)

public void SetEditable(bool isEditable)

Parameters

isEditable bool

SetEnableEmojiCompletion(bool)

public void SetEnableEmojiCompletion(bool enableEmojiCompletion)

Parameters

enableEmojiCompletion bool

SetEnableUndo(bool)

public void SetEnableUndo(bool enableUndo)

Parameters

enableUndo bool

SetExtraMenu(MenuModel?)

public void SetExtraMenu(MenuModel? model)

Parameters

model MenuModel

SetInputHints(InputHints)

public void SetInputHints(InputHints hints)

Parameters

hints InputHints

SetInputPurpose(InputPurpose)

public void SetInputPurpose(InputPurpose purpose)

Parameters

purpose InputPurpose

SetInvisibleChar(uint)

public void SetInvisibleChar(uint ch)

Parameters

ch uint

SetMaxLength(int)

public void SetMaxLength(int length)

Parameters

length int

SetMaxWidthChars(int)

public void SetMaxWidthChars(int nChars)

Parameters

nChars int

SetOverwriteMode(bool)

public void SetOverwriteMode(bool overwrite)

Parameters

overwrite bool

SetPlaceholderText(string?)

public void SetPlaceholderText(string? text)

Parameters

text string

SetPosition(int)

public void SetPosition(int position)

Parameters

position int

SetPropagateTextWidth(bool)

public void SetPropagateTextWidth(bool propagateTextWidth)

Parameters

propagateTextWidth bool

SetTabs(TabArray?)

public void SetTabs(TabArray? tabs)

Parameters

tabs TabArray

SetText(string)

public void SetText(string text)

Parameters

text string

SetTruncateMultiline(bool)

public void SetTruncateMultiline(bool truncateMultiline)

Parameters

truncateMultiline bool

SetVisibility(bool)

public void SetVisibility(bool visible)

Parameters

visible bool

SetWidthChars(int)

public void SetWidthChars(int nChars)

Parameters

nChars int

UnsetInvisibleChar()

public void UnsetInvisibleChar()

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

OnActivate

public event SignalHandler<Text> OnActivate

Event Type

SignalHandler<Text>

OnBackspace

public event SignalHandler<Text> OnBackspace

Event Type

SignalHandler<Text>

OnCopyClipboard

public event SignalHandler<Text> OnCopyClipboard

Event Type

SignalHandler<Text>

OnCutClipboard

public event SignalHandler<Text> OnCutClipboard

Event Type

SignalHandler<Text>

OnDeleteFromCursor

public event SignalHandler<Text, Text.DeleteFromCursorSignalArgs> OnDeleteFromCursor

Event Type

SignalHandler<Text, Text.DeleteFromCursorSignalArgs>

OnInsertAtCursor

public event SignalHandler<Text, Text.InsertAtCursorSignalArgs> OnInsertAtCursor

Event Type

SignalHandler<Text, Text.InsertAtCursorSignalArgs>

OnInsertEmoji

public event SignalHandler<Text> OnInsertEmoji

Event Type

SignalHandler<Text>

OnMoveCursor

public event SignalHandler<Text, Text.MoveCursorSignalArgs> OnMoveCursor

Event Type

SignalHandler<Text, Text.MoveCursorSignalArgs>

OnPasteClipboard

public event SignalHandler<Text> OnPasteClipboard

Event Type

SignalHandler<Text>

OnPreeditChanged

public event SignalHandler<Text, Text.PreeditChangedSignalArgs> OnPreeditChanged

Event Type

SignalHandler<Text, Text.PreeditChangedSignalArgs>

OnToggleOverwrite

public event SignalHandler<Text> OnToggleOverwrite

Event Type

SignalHandler<Text>