LinkPropertyToFieldDelegate#

Qualified name: delphivcl.LinkPropertyToFieldDelegate

class LinkPropertyToFieldDelegate#

Bases: BindComponentDelegate

Is a binding component that wraps another binding component and references a component property, data source, and field name. The TLinkPropertyToFieldDelegate class implements a binding component that wraps another binding component and references a component property, a data source, and a field name. For more information regarding the delegates, please refer to the New LiveBinding topic, the Quick Binding Components Reference section.

Methods

BindMethodsToEvents

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName.

GetParentComponent

Returns the parent of a component.

HasParent

Indicates whether the component has a parent to handle its filing.

Attributes

BindingsList

Specifies a list that holds the binding expressions.

Category

Specifies a category for this component.

ClassName

Returns the TObject.ClassName

ComObject

Specifies the interface reference implemented by the component.

Component

Specifies the component that this wrapping binding component references.

ComponentCount

Returns the owned component count

ComponentIndex

Indicates the position of the component in its owner's Components property array.

ComponentProperty

Specifies the name of the property of the component that this wrapping binding component references.

ComponentState

Describes the current state of the component, indicating when a component needs to avoid certain actions.

ComponentStyle

Governs the behavior of the component.

Components

Returns an iterator over the owned components

ControlComponent

Specifies the component that will be bound to the source component, by means of LiveBindings.

DataSource

Specifies a TDataSource object to which this delegate component links.

DesignInfo

Contains information used by the Form designer.

DisplayName

Returns a string containing the name of this component.

FieldName

Specifies the field name that this wrapping binding component references.

Index

Returns the index of this component in the bindings list.

Name

Specifies the name of the component as referenced in code.

Observers

Indicates the TObservers object added to the TComponent.

OnActivated

<Delphi property OnActivated of type TBindComponentDelegate at 211412F1B30>

OnActivating

<Delphi property OnActivating of type TBindComponentDelegate at 211412F1A60>

OnAssignedValue

<Delphi property OnAssignedValue of type TBindComponentDelegate at 211412F18C0>

OnAssigningValue

<Delphi property OnAssigningValue of type TBindComponentDelegate at 211412F17F0>

OnEvalError

<Delphi property OnEvalError of type TBindComponentDelegate at 211412F1990>

Owner

Returns the Component Owner

Tag

Stores a NativeInt integral value as a part of a component.

VCLComObject

Represents information used internally by components that support COM.

BindMethodsToEvents(prefix)#

Connects methods to component events if they are named using the following pattern: Prefix_ComponentName_EventName. Example: def handle_button1_OnClick(Sender): pass The function returns a list of tuples. Each tuple contains the name of the component, the name of the event and the method object assigned to the event. Note that the prefix parameter is optional and will default to “handle_”.

Component#

Specifies the component that this wrapping binding component references.

ComponentCount#

Returns the owned component count

ComponentProperty#

Specifies the name of the property of the component that this wrapping binding component references.

Components#

Returns an iterator over the owned components

DataSource#

Specifies a TDataSource object to which this delegate component links. Use DataSource to determine or set the TDataSource object that connects to a specific dataset.

FieldName#

Specifies the field name that this wrapping binding component references.

GetParentComponent()#

Returns the parent of a component.

HasParent()#

Indicates whether the component has a parent to handle its filing.

Owner#

Returns the Component Owner