Table of Contents

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

constructArguments ConstructArgument[]

StringObject(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected StringObject(CreationData data)

Parameters

data CreationData

StringObject(StringObjectHandle)

protected StringObject(StringObjectHandle handle)

Parameters

handle StringObjectHandle

Fields

StringPropertyDefinition

public static readonly Property<string?, StringObject> StringPropertyDefinition

Field Value

Property<string, StringObject>

Properties

String

public string? String { get; }

Property Value

string

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetString()

public string GetString()

Returns

string

New(string)

public static StringObject New(string @string)

Parameters

string string

Returns

StringObject

NewFromPointer(nint, bool)

Creates a new managed StringObject instance for a given pointer.

public static StringObject NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

StringObject

NewWithProperties(ConstructArgument[])

Creates a new StringObject and sets the properties specified by the construct arguments.

public static StringObject NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

StringObject