Class RadButtonItem
Represents a button item.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadButtonItem : RadItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement
Constructors
RadButtonItem()
Initializes a new instance of the RadButtonItem class.
Declaration
public RadButtonItem()
RadButtonItem(String)
Initializes a new instance of the RadButtonItem class and sets it's Text property to the provided string.
Declaration
public RadButtonItem(string text)
Parameters
System.String
text
|
RadButtonItem(String, Image)
Initializes a new instance of the RadButtonItem class, sets it's Text and Image properties to the provided string and Image.
Declaration
public RadButtonItem(string text, Image image)
Parameters
System.String
text
|
System.Drawing.Image
image
|
Fields
DisplayStyleProperty
ImageAlignmentProperty
ImageIndexProperty
ImageKeyProperty
ImageProperty
IsDefaultProperty
IsPressedProperty
SvgImageProperty
TextAlignmentProperty
TextImageRelationProperty
Properties
DisplayStyle
Specifies the options for display of image and text primitives in the element.
Declaration
[RadPropertyDefaultValue("DisplayStyle", typeof(RadButtonItem))]
public virtual DisplayStyle DisplayStyle { get; set; }
Property Value
DisplayStyle
|
Image
Gets or sets the image that is displayed on a button element.
Declaration
[RadPropertyDefaultValue("Image", typeof(RadButtonItem))]
public virtual Image Image { get; set; }
Property Value
System.Drawing.Image
|
Implements
ImageAlignment
Gets or sets the alignment of image content on the drawing surface.
Declaration
[RadPropertyDefaultValue("ImageAlignment", typeof(RadButtonItem))]
public virtual ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
ImageIndex
Gets or sets the image list index value of the image displayed on the button control.
Declaration
[RadPropertyDefaultValue("ImageIndex", typeof(RadButtonItem))]
public virtual int ImageIndex { get; set; }
Property Value
System.Int32
|
Implements
ImageKey
Gets or sets the key accessor for the image in the ImageList.
Declaration
[RadPropertyDefaultValue("ImageKey", typeof(RadButtonItem))]
public virtual string ImageKey { get; set; }
Property Value
System.String
|
Implements
IsDefault
Determines if this button is the default button for the form it is on.
Declaration
public virtual bool IsDefault { get; set; }
Property Value
System.Boolean
|
IsPressed
Gets a value indicating whether the button item is in the pressed state.
Declaration
public virtual bool IsPressed { get; }
Property Value
System.Boolean
|
IsSharedImage
SvgImage
Gets or sets the vector image that is displayed on a button element.
Declaration
[RadPropertyDefaultValue("SvgImage", typeof(RadButtonItem))]
public RadSvgImage SvgImage { get; set; }
Property Value
RadSvgImage
|
SvgImageXml
Gets or sets the Svg Image as string.
Declaration
public string SvgImageXml { get; set; }
Property Value
System.String
|
TextAlignment
Gets or sets the alignment of text content on the drawing surface.
Declaration
[RadPropertyDefaultValue("TextAlignment", typeof(RadButtonItem))]
public virtual ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
TextImageRelation
Gets or sets the position of text and image relative to each other.
Declaration
[RadPropertyDefaultValue("TextImageRelation", typeof(RadButtonItem))]
public virtual TextImageRelation TextImageRelation { get; set; }
Property Value
System.Windows.Forms.TextImageRelation
|
Methods
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
MapStyleProperty(RadProperty, String)
Declaration
public override RadProperty MapStyleProperty(RadProperty propertyToMap, string settingType)
Parameters
RadProperty
propertyToMap
|
System.String
settingType
|
Returns
RadProperty
|
Overrides
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnDoubleClick(EventArgs)
Declaration
protected override void OnDoubleClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnKeyDown(KeyEventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs
e
|
Overrides
OnKeyUp(KeyEventArgs)
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Forms.KeyEventArgs
e
|
Overrides
OnMouseDown(MouseEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnMouseEnter(EventArgs)
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnMouseUp(MouseEventArgs)
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
ShouldSerializeProperty(PropertyDescriptor)
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
|
Returns
System.Nullable<System.Boolean>
|