संपादित करें

इसके माध्यम से साझा किया गया


DesignerRegion.UserData Property

Definition

Gets or sets optional user data to associate with the designer region.

public:
 property System::Object ^ UserData { System::Object ^ get(); void set(System::Object ^ value); };
public object UserData { get; set; }
member this.UserData : obj with get, set
Public Property UserData As Object

Property Value

An object that contains user data stored for the designer region. The default is null.

Remarks

Within a control designer implementation, use the UserData property to store or retrieve additional information for the designer region.

For example, if the control designer implementation supports selecting from multiple designer regions, you can use the UserData property in a control designer to store a unique index for each region. You can then use the UserData property for the region that is passed into the OnClick method to store the index for the currently selected region.

Applies to

See also