ClassRadBrowseEditor
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.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
[DefaultBindingProperty("Value")]
public class RadBrowseEditor : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadBrowseEditor
Implements:
Inherited Members
Constructors
RadBrowseEditor()
Initializes a new instance of the RadBrowseEditor class.
Declaration
public RadBrowseEditor()
Properties
AutoSize
Gets or sets whether the browse editor control is auto-sized to fit its content.
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
BrowseDialog
Gets the dialog component that will open upon pressing the browse button. The actual type depends on the DialogType property.
BrowseElement
Gets the RadBrowseEditorElement that provides the core functionality of this control.
Declaration
[Browsable(false)]
public RadBrowseEditorElement BrowseElement { get; }
Property Value
DefaultSize
Gets the default size for the browse editor control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
DialogType
Gets or sets the type of dialog to be opened when the browse button is pressed.
Declaration
[Browsable(true)]
public virtual BrowseEditorDialogType DialogType { get; set; }
Property Value
ReadOnly
Gets or sets a value indicating whether users can input text directly into the text field.
Declaration
[Browsable(true)]
public bool ReadOnly { get; set; }
Property Value
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
[Browsable(true)]
public string Value { get; set; }
Property Value
Methods
CreateChildItems(RadElement)
Creates the child items for the browse editor control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent element to add child items to.
Overrides
CreateEditorElement()
Creates the RadBrowseEditorElement for this control.
Declaration
protected virtual RadBrowseEditorElement CreateEditorElement()
Returns
A new instance of RadBrowseEditorElement.
Dispose(bool)
Disposes resources and unwires event handlers.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
True if disposing managed resources, false otherwise.
Overrides
ProcessAutoSizeChanged(bool)
Processes auto size changed events and adjusts the stretch properties accordingly.
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
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 Value
ReadOnlyChanged
Fires when the ReadOnly property value is changed.
ValueChanged
Fires after the editor value is changed.
ValueChanging
Fires right before the value is changed. Cancelable event.
Declaration
public event ValueChangingEventHandler ValueChanging
Event Value