Builder Bind( string targetName )

book_4_sparkGenerated
code_blocksInput

Description

The Bind method in the Editor.GraphicsItem class is used to create a binding between a graphics item and a specified target. This method returns a Sandbox.Bind.Builder object, which can be used to further configure the binding.

Usage

To use the Bind method, call it on an instance of Editor.GraphicsItem and pass the name of the target you wish to bind to as a string parameter. The method will return a Sandbox.Bind.Builder object, which allows for additional configuration of the binding.

Example

// Example of using the Bind method
Editor.GraphicsItem graphicsItem = new Editor.GraphicsItem();
Sandbox.Bind.Builder bindBuilder = graphicsItem.Bind("targetName");

// Further configuration can be done using the bindBuilder object
// For example, setting up specific properties or events to bind
bindBuilder.ToProperty("PropertyName");