Class EntryBuffer
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class EntryBuffer : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
EntryBuffer
- Implements
- Derived
- Inherited Members
Constructors
EntryBuffer(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public EntryBuffer(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
EntryBuffer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected EntryBuffer(CreationData data)
Parameters
dataCreationData
EntryBuffer(EntryBufferHandle)
protected EntryBuffer(EntryBufferHandle handle)
Parameters
handleEntryBufferHandle
Fields
DeletedTextSignal
Signal Descriptor for OnDeletedText.
public static readonly Signal<EntryBuffer, EntryBuffer.DeletedTextSignalArgs> DeletedTextSignal
Field Value
InsertedTextSignal
Signal Descriptor for OnInsertedText.
public static readonly Signal<EntryBuffer, EntryBuffer.InsertedTextSignalArgs> InsertedTextSignal
Field Value
LengthPropertyDefinition
public static readonly Property<uint, EntryBuffer> LengthPropertyDefinition
Field Value
MaxLengthPropertyDefinition
public static readonly Property<int, EntryBuffer> MaxLengthPropertyDefinition
Field Value
TextPropertyDefinition
public static readonly Property<string?, EntryBuffer> TextPropertyDefinition
Field Value
Properties
Length
public uint Length { get; }
Property Value
MaxLength
public int MaxLength { get; set; }
Property Value
Text
public string? Text { get; set; }
Property Value
Methods
DeleteText(uint, int)
public uint DeleteText(uint position, int nChars)
Parameters
Returns
EmitDeletedText(uint, uint)
public void EmitDeletedText(uint position, uint nChars)
Parameters
EmitInsertedText(uint, string, uint)
public void EmitInsertedText(uint position, string chars, uint nChars)
Parameters
GetBytes()
public nuint GetBytes()
Returns
GetGType()
public static Type GetGType()
Returns
GetLength()
public uint GetLength()
Returns
GetMaxLength()
public int GetMaxLength()
Returns
GetText()
public string GetText()
Returns
InsertText(uint, string, int)
public uint InsertText(uint position, string chars, int nChars)
Parameters
Returns
New(string?, int)
public static EntryBuffer New(string? initialChars, int nInitialChars)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed EntryBuffer instance for a given pointer.
public static EntryBuffer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new EntryBuffer and sets the properties specified by the construct arguments.
public static EntryBuffer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetMaxLength(int)
public void SetMaxLength(int maxLength)
Parameters
maxLengthint
SetText(string, int)
public void SetText(string chars, int nChars)
Parameters
Events
OnDeletedText
public event SignalHandler<EntryBuffer, EntryBuffer.DeletedTextSignalArgs> OnDeletedText
Event Type
OnInsertedText
public event SignalHandler<EntryBuffer, EntryBuffer.InsertedTextSignalArgs> OnInsertedText