New to Telerik UI for WinForms? Start a free 30-day trial

Holds the caption, optional image, and application data used to create a suggested-action button.

The visual element copies these values when it is created; changing this item does not update an existing button.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SuggestedActionDataItem

Inheritance: objectSuggestedActionDataItem

Constructors

Initializes an action with a caption, optional image, and application data.

C#
public SuggestedActionDataItem(string text, Image image, object userData)
Parameters:textstring

The caption displayed on the action button.

imageImage

The image displayed with the caption, or null.

userDataobject

Application-defined data copied to the visual element's Tag.

Initializes an action with a caption and optional image.

C#
public SuggestedActionDataItem(string text, Image image)
Parameters:textstring

The caption displayed on the action button.

imageImage

The image displayed with the caption, or null.

Initializes an action with a caption and no image or user data.

C#
public SuggestedActionDataItem(string text)
Parameters:textstring

The caption displayed on the action button.

Properties

Gets or sets the image displayed with the action caption.

C#
public Image Image { get; set; }

Gets or sets the caption displayed on the action button.

C#
public string Text { get; set; }

Gets or sets application-defined data copied to the action element's Tag.

C#
public object UserData { get; set; }