New to Telerik UI for WinFormsStart a free 30-day trial

Represents an action item displayed in the RadPromptInputElement more button dropdown.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PromptInputButtonAction : INotifyPropertyChanged

Inheritance: objectPromptInputButtonAction

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the PromptInputButtonAction class with the specified button text, icon, and action to execute when the button is pressed.

C#
public PromptInputButtonAction(string text, Image icon, Action action)
Parameters:textstring

The text to display on the button. Cannot be null.

iconImage

The icon image to display on the button. Can be null if no icon is desired.

actionAction

The action to execute when the button is clicked. Cannot be null.

Initializes a new instance of the PromptInputButtonAction class with the specified button text, icon, and action to execute when the button is pressed.

C#
public PromptInputButtonAction(string text, RadSvgImage svgIcon, Action action)
Parameters:textstring

The text to display on the button. Cannot be null.

svgIconRadSvgImage

The SVG icon to display on the button. Can be null if no icon is desired.

actionAction

The action to execute when the button is clicked. Cannot be null.

Properties

Gets or sets the action executed when the item is invoked.

C#
public Action Action { get; set; }

Gets or sets the image icon for the action.

C#
public Image ImageIcon { get; set; }

Gets or sets the SVG icon for the action.

C#
public RadSvgImage SvgIcon { get; set; }

Gets or sets the display text of the action.

C#
public string Text { get; set; }

Methods

Raises the PropertyChanged event.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Events

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged