Table of Contents

Class Binding

Namespace
GObject
Assembly
GObject-2.0.dll
public class Binding : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Binding
Implements
Inherited Members

Constructors

Binding(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 Binding(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Binding(CreationData)

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

Parameters

data CreationData

Binding(BindingHandle)

protected Binding(BindingHandle handle)

Parameters

handle BindingHandle

Fields

FlagsPropertyDefinition

public static readonly Property<BindingFlags, Binding> FlagsPropertyDefinition

Field Value

Property<BindingFlags, Binding>

SourcePropertyDefinition

public static readonly Property<Object?, Binding> SourcePropertyDefinition

Field Value

Property<Object, Binding>

SourcePropertyPropertyDefinition

public static readonly Property<string?, Binding> SourcePropertyPropertyDefinition

Field Value

Property<string, Binding>

TargetPropertyDefinition

public static readonly Property<Object?, Binding> TargetPropertyDefinition

Field Value

Property<Object, Binding>

TargetPropertyPropertyDefinition

public static readonly Property<string?, Binding> TargetPropertyPropertyDefinition

Field Value

Property<string, Binding>

Properties

Flags

public BindingFlags Flags { get; }

Property Value

BindingFlags

Source

public Object? Source { get; }

Property Value

Object

SourceProperty

public string? SourceProperty { get; }

Property Value

string

Target

public Object? Target { get; }

Property Value

Object

TargetProperty

public string? TargetProperty { get; }

Property Value

string

Methods

DupSource()

[Version("2.68")]
public Object? DupSource()

Returns

Object

DupTarget()

[Version("2.68")]
public Object? DupTarget()

Returns

Object

GetFlags()

[Version("2.26")]
public BindingFlags GetFlags()

Returns

BindingFlags

GetGType()

public static Type GetGType()

Returns

Type

GetSource()

[Version("2.26")]
public Object? GetSource()

Returns

Object

GetSourceProperty()

[Version("2.26")]
public string GetSourceProperty()

Returns

string

GetTarget()

[Version("2.26")]
public Object? GetTarget()

Returns

Object

GetTargetProperty()

[Version("2.26")]
public string GetTargetProperty()

Returns

string

NewFromPointer(nint, bool)

Creates a new managed Binding instance for a given pointer.

public static Binding NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Binding

NewWithProperties(ConstructArgument[])

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

public static Binding NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Binding

Unbind()

[Version("2.38")]
public void Unbind()