Class RadBrowseEditor
Represents a browser control box. The RadBrowseEditor class is a simple wrapper for the RadBrowseEditorElement class. The RadBrowseEditor acts to transfer events to and from its corresponding RadBrowseEditorElement. The RadBrowseEditorElement which is essentially the RadBrowseEditor control may be nested in other telerik controls.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadBrowseEditor : RadEditorControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadBrowseEditor()
Properties
AutoSize
Gets or sets whether the browse editor control is auto-sized to fit its content.
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
BrowseDialog
Gets the dialog component that will open upon pressing the browse button. The actual type depends on the DialogType property.
Declaration
public Component BrowseDialog { get; }
Property Value
System.ComponentModel.Component
|
BrowseElement
Gets the RadBrowseEditorElement that provides the core functionality of this control.
Declaration
public RadBrowseEditorElement BrowseElement { get; }
Property Value
RadBrowseEditorElement
|
DefaultSize
Gets the default size for the browse editor control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
Dialog
This property is not relevant for this class.
Declaration
[Obsolete("Use the BrowseDialog property and and cast it to the actual dialog type.")]
public CommonDialog Dialog { get; }
Property Value
System.Windows.Forms.CommonDialog
|
DialogType
Gets or sets the type of dialog to be opened when the browse button is pressed.
Declaration
public virtual BrowseEditorDialogType DialogType { get; set; }
Property Value
BrowseEditorDialogType
|
ReadOnly
Gets or sets a value indicating whether users can input text directly into the text field.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
Value
Gets or sets the value of the browse editor. This represents the selected file path, folder path, or font name depending on the DialogType.
Declaration
public string Value { get; set; }
Property Value
System.String
|
Methods
CreateChildItems(RadElement)
Creates the child items for the browse editor control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
The parent element to add child items to. |
Overrides
CreateEditorElement()
Creates the RadBrowseEditorElement for this control.
Declaration
protected virtual RadBrowseEditorElement CreateEditorElement()
Returns
RadBrowseEditorElement
A new instance of RadBrowseEditorElement. |
Dispose(Boolean)
Disposes resources and unwires event handlers.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
True if disposing managed resources, false otherwise. |
Overrides
ProcessAutoSizeChanged(Boolean)
Processes auto size changed events and adjusts the stretch properties accordingly.
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean
value
True if auto sizing is enabled, false otherwise. |
Overrides
ResetBackColorThemeOverrides()
Resets the background color theme overrides for the browse editor element.
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Resets the forecolor theme overrides for the browse editor element.
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetBackColorThemeOverrides()
Sets the background color theme overrides for the browse editor element.
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Sets the forecolor theme overrides for the browse editor element.
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
UnwireEvents()
Unwires the event handlers for the browse editor element.
Declaration
protected virtual void UnwireEvents()
WireEvents()
Wires the event handlers for the browse editor element.
Declaration
protected virtual void WireEvents()
Events
DialogClosed
Fires after the dialog window is closed.
Declaration
public event DialogClosedEventHandler DialogClosed
Event Type
DialogClosedEventHandler
|
ReadOnlyChanged
Fires when the ReadOnly property value is changed.
Declaration
public event EventHandler ReadOnlyChanged
Event Type
System.EventHandler
|
ValueChanged
Fires after the editor value is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|
ValueChanging
Fires right before the value is changed. Cancelable event.
Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
ValueChangingEventHandler
|