Class EditableHelper
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public sealed class EditableHelper : Object, IDisposable, Editable, InstanceFactory, GTypeProvider
- Inheritance
-
EditableHelper
- Implements
-
- Inherited Members
-
Constructors
EditableHelper(ObjectHandle)
public EditableHelper(ObjectHandle handle)
Parameters
handle
ObjectHandle
Properties
CursorPosition
public int CursorPosition { get; }
Property Value
- int
Editable
public bool Editable { get; set; }
Property Value
- bool
EnableUndo
public bool EnableUndo { get; set; }
Property Value
- bool
MaxWidthChars
public int MaxWidthChars { get; set; }
Property Value
- int
SelectionBound
public int SelectionBound { get; }
Property Value
- int
Text_
public string? Text_ { get; set; }
Property Value
- string
WidthChars
public int WidthChars { get; set; }
Property Value
- int
Xalign
public float Xalign { get; set; }
Property Value
- float
Methods
[Version("4.10")]
public bool DelegateGetAccessiblePlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
- bool
DelegateGetProperty(Object, uint, Value, ParamSpec)
public static bool DelegateGetProperty(Object @object, uint propId, Value value, ParamSpec pspec)
Parameters
object
Object
propId
uint
value
Value
pspec
ParamSpec
Returns
- bool
DelegateSetProperty(Object, uint, Value, ParamSpec)
public static bool DelegateSetProperty(Object @object, uint propId, Value value, ParamSpec pspec)
Parameters
object
Object
propId
uint
value
Value
pspec
ParamSpec
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()
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
GetEnableUndo()
public bool GetEnableUndo()
Returns
- bool
GetGType()
public static Type GetGType()
Returns
- Type
GetMaxWidthChars()
public int GetMaxWidthChars()
Returns
- int
GetPosition()
Returns
- int
GetSelectionBounds(out int, out int)
public bool GetSelectionBounds(out int startPos, out int endPos)
Parameters
startPos
int
endPos
int
Returns
- bool
GetText()
Returns
- string
GetWidthChars()
public int GetWidthChars()
Returns
- int
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
InstallProperties(ObjectClass, uint)
public static uint InstallProperties(ObjectClass objectClass, uint firstProp)
Parameters
objectClass
ObjectClass
firstProp
uint
Returns
- uint
SelectRegion(int, int)
public void SelectRegion(int startPos, int endPos)
Parameters
startPos
int
endPos
int
SetEditable(bool)
public void SetEditable(bool isEditable)
Parameters
isEditable
bool
SetEnableUndo(bool)
public void SetEnableUndo(bool enableUndo)
Parameters
enableUndo
bool
SetMaxWidthChars(int)
public void SetMaxWidthChars(int nChars)
Parameters
nChars
int
SetPosition(int)
public void SetPosition(int position)
Parameters
position
int
SetText(string)
public void SetText(string text)
Parameters
text
string
SetWidthChars(int)
public void SetWidthChars(int nChars)
Parameters
nChars
int