Class RadButtonBase
Represents a base button control. The button control serves as a RadButtonElement wrapper. All logic and presentation features are implemented in a parallel hierarchy of objects. For this reason, RadButtonElement may be nested in any other telerik control, item, or element.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadButtonBase : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadButtonBase()
Initializes a new instance of the RadButtonBase class.
Declaration
public RadButtonBase()
Properties
AllowShowFocusCues
Indicates focus cues display, when available, based on the corresponding control type and the current UI state.
Declaration
public override bool AllowShowFocusCues { get; set; }
Property Value
System.Boolean
|
Overrides
ButtonElement
Gets the instance of RadButtonElement wrapped by this control. RadButtonElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadButton.
Declaration
public RadButtonElement ButtonElement { get; }
Property Value
RadButtonElement
|
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
DefaultTextAlignment
Declaration
protected virtual ContentAlignment DefaultTextAlignment { get; }
Property Value
System.Drawing.ContentAlignment
|
DisplayStyle
Specifies the options for display of image and text primitives in the element.
Declaration
[RadDefaultValue("DisplayStyle", typeof(RadButtonElement))]
public DisplayStyle DisplayStyle { get; set; }
Property Value
DisplayStyle
|
Font
Gets or sets the Font of the control. This actually the Font property of the root element. Setting to [null] resets the value and the font from the applied theme will be used.
Declaration
public override Font Font { get; set; }
Property Value
System.Drawing.Font
|
Overrides
Image
Declaration
[RadDescription("Image", typeof(RadButtonElement))]
public Image Image { get; set; }
Property Value
System.Drawing.Image
|
ImageAlignment
Gets or sets the alignment of image content on the drawing surface.
Declaration
[RadDefaultValue("ImageAlignment", typeof(RadButtonElement))]
public ContentAlignment ImageAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
ImageIndex
Declaration
[RadDefaultValue("ImageIndex", typeof(RadButtonElement))]
[RadDescription("ImageIndex", typeof(RadButtonElement))]
public int ImageIndex { get; set; }
Property Value
System.Int32
|
ImageKey
Declaration
[RadDefaultValue("ImageKey", typeof(RadButtonElement))]
[RadDescription("ImageKey", typeof(RadButtonElement))]
public string ImageKey { get; set; }
Property Value
System.String
|
MeasureTrailingSpaces
Includes the trailing space at the end of each line. By default the boundary rectangle returned by the Overload:System.Drawing.Graphics.MeasureString method excludes the space at the end of each line. Set this flag to include that space in measurement.
Declaration
public bool MeasureTrailingSpaces { get; set; }
Property Value
System.Boolean
|
SvgImage
Gets or sets the Svg Image.
Declaration
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
|
Text
Gets or sets the text associated with this item.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TextAlignment
Gets or sets the alignment of text content on the drawing surface.
Declaration
public ContentAlignment TextAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
TextImageRelation
Gets or sets the position of text and image relative to each other.
Declaration
[RadDefaultValue("TextImageRelation", typeof(RadButtonElement))]
public TextImageRelation TextImageRelation { get; set; }
Property Value
System.Windows.Forms.TextImageRelation
|
TextWrap
Declaration
[RadPropertyDefaultValue("TextWrap", typeof(TextPrimitive))]
public bool TextWrap { get; set; }
Property Value
System.Boolean
|
UseMnemonic
Determines whether the button can be clicked by using mnemonic characters.
Declaration
public bool UseMnemonic { get; set; }
Property Value
System.Boolean
|
Methods
ControlDefinesThemeForElement(RadElement)
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement
element
|
Returns
System.Boolean
|
Overrides
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject
|
CreateButtonElement()
Override this method to create custom main element. By default the main element is an instance of RadButtonElement.
Declaration
protected virtual RadButtonElement CreateButtonElement()
Returns
RadButtonElement
Instance of the one-and-only child of the root element of RadButton. |
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
InitializeRootElement(RootRadElement)
Declaration
protected override void InitializeRootElement(RootRadElement rootElement)
Parameters
RootRadElement
rootElement
|
Overrides
OnClick(EventArgs)
Declaration
protected override void OnClick(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnGotFocus(EventArgs)
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
PerformClick()
Declaration
public virtual void PerformClick()
ProcessMnemonic(Char)
Declaration
protected override bool ProcessMnemonic(char charCode)
Parameters
System.Char
charCode
|
Returns
System.Boolean
|
Overrides
Events
DoubleClick
Declaration
public event EventHandler DoubleClick
Event Type
System.EventHandler
|
MouseDoubleClick
Declaration
public event MouseEventHandler MouseDoubleClick
Event Type
System.Windows.Forms.MouseEventHandler
|