Class StringObject
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class StringObject : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
StringObject
- Implements
- Inherited Members
Constructors
StringObject(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 StringObject(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
StringObject(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected StringObject(CreationData data)
Parameters
dataCreationData
StringObject(StringObjectHandle)
protected StringObject(StringObjectHandle handle)
Parameters
handleStringObjectHandle
Fields
StringPropertyDefinition
public static readonly Property<string?, StringObject> StringPropertyDefinition
Field Value
Properties
String
public string? String { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetString()
public string GetString()
Returns
New(string)
public static StringObject New(string @string)
Parameters
stringstring
Returns
NewFromPointer(nint, bool)
Creates a new managed StringObject instance for a given pointer.
public static StringObject NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new StringObject and sets the properties specified by the construct arguments.
public static StringObject NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.