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
constructArgumentsConstructArgument[]
Binding(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Binding(CreationData data)
Parameters
dataCreationData
Binding(BindingHandle)
protected Binding(BindingHandle handle)
Parameters
handleBindingHandle
Fields
FlagsPropertyDefinition
public static readonly Property<BindingFlags, Binding> FlagsPropertyDefinition
Field Value
SourcePropertyDefinition
public static readonly Property<Object?, Binding> SourcePropertyDefinition
Field Value
SourcePropertyPropertyDefinition
public static readonly Property<string?, Binding> SourcePropertyPropertyDefinition
Field Value
TargetPropertyDefinition
public static readonly Property<Object?, Binding> TargetPropertyDefinition
Field Value
TargetPropertyPropertyDefinition
public static readonly Property<string?, Binding> TargetPropertyPropertyDefinition
Field Value
Properties
Flags
public BindingFlags Flags { get; }
Property Value
Source
public Object? Source { get; }
Property Value
SourceProperty
public string? SourceProperty { get; }
Property Value
Target
public Object? Target { get; }
Property Value
TargetProperty
public string? TargetProperty { get; }
Property Value
Methods
DupSource()
[Version("2.68")]
public Object? DupSource()
Returns
DupTarget()
[Version("2.68")]
public Object? DupTarget()
Returns
GetFlags()
[Version("2.26")]
public BindingFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetSource()
[Version("2.26")]
public Object? GetSource()
Returns
GetSourceProperty()
[Version("2.26")]
public string GetSourceProperty()
Returns
GetTarget()
[Version("2.26")]
public Object? GetTarget()
Returns
GetTargetProperty()
[Version("2.26")]
public string GetTargetProperty()
Returns
NewFromPointer(nint, bool)
Creates a new managed Binding instance for a given pointer.
public static Binding NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Binding and sets the properties specified by the construct arguments.
public static Binding NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Unbind()
[Version("2.38")]
public void Unbind()