ImageGear .NET - Updated July 5, 2018
UserData Property (ImGearARTTextCallout)
Example 




ImageGear24.Art Assembly > ImageGear.ART Namespace > ImGearARTTextCallout Class : UserData Property
Gets or sets the user data specified for the mark.
Syntax
'Declaration
 
Public Overrides Property UserData As Object
 
'Usage
 
Dim instance As ImGearARTTextCallout
Dim value As Object
 
instance.UserData = value
 
value = instance.UserData

Property Value

Object value.
Remarks
You can load/save the data associated with this property from/to XML.

In order to do that you need to declare serializable class, create and initialize an object of that class, and attach it to ImGearARTMark.UserData.

Example
[Serializable]
public class UserData
{
    private string _textData;
    private int _integerData;

    public UserData(string textData, int integerData)
    {
        this.TextData = textData;
        this.IntegerData = integerData;
    }

    public string TextData
    {
        get
        {
            return _textData;
        }

        private set
        {
            _textData = value;
        }
    }

    public int IntegerData
    {
        get
        {
            return _integerData;
        }

        private set
        {
            _integerData = value;
        }
    }
}
See Also

Reference

ImGearARTTextCallout Class
ImGearARTTextCallout Members