MediaSelector Class |
Namespace: CMS.Controls
public class MediaSelector : WebControl, INamingContainer, ICallbackEventHandler, IDialogControl
The MediaSelector type exposes the following members.
Name | Description | |
---|---|---|
MediaSelector |
Constructor.
| |
MediaSelector(String) |
Constructor with default image path.
| |
MediaSelector(String, Boolean) |
Constructor with default image path.
|
Name | Description | |
---|---|---|
CreateChildControls |
Renders the control at run-time.
(Overrides ControlCreateChildControls.) | |
CreatePreviewControl |
Create preview control
| |
GetCallbackResult |
Prepares the callback result.
| |
GetUrlValue |
Returns unresolved url for selected media.
| |
InitControls |
Initializes controls.
| |
LoadDisplayValues |
Returns the display text for the given selector value.
| |
MediaSelector_PreRender |
PreRender event handler.
| |
OnLoad |
Load event handler.
(Overrides ControlOnLoad(EventArgs).) | |
PreviewControlSetup |
Setup preview control
| |
RaiseCallbackEvent |
Raises the callback event.
| |
Render |
Renders the control at design-time.
(Overrides WebControlRender(HtmlTextWriter).) | |
SetUrlValue |
Sets url and preview for selected media.
|
Name | Description | |
---|---|---|
AddCssClass |
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
CallHandled |
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page.
Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetCssClasses |
Returns all CSS classes of control.
(Defined by ControlsExtensions.) | |
GetRenderedHTML |
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
HasCssClass |
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
RemoveCssClass |
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.) | |
SetCssClasses |
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
mBtnClearPath |
Clear path button.
| |
mBtnSelectImage |
Select image button.
| |
mHidFullUrl |
Hidden Full URL.
| |
mHidValue |
Hidden value field.
| |
mLtlScript |
Script literal.
| |
mPnlHeader |
Header panel.
| |
mPnlImage |
Preview image panel.
| |
mPnlSelector |
Selector panel.
| |
mPreview |
Preview control.
| |
mTxtImagePath |
Image path field.
|
Name | Description | |
---|---|---|
AutoPostback |
Sets textbox autopostback value
| |
ClearPathButton |
Clear path button.
| |
Culture |
Interface culture of the control.
| |
DialogConfig |
Configuration of the dialog for inserting Images.
| |
Enabled |
Enabled.
(Overrides WebControlEnabled.) | |
EnableOpenInFull |
Enable open in full size behavior.
| |
ImageCssClass |
CSS class of the image preview.
| |
ImageHeight |
Height of the image preview.
| |
ImageMaxSideSize |
Image max side size.
| |
ImagePathTextBox |
Image path textbox.
| |
ImageStyle |
CSS style of the image preview.
| |
ImageWidth | Width of the image preview. | |
IsLiveSite |
Indicates if control is used in live site mode.
| |
PreviewControl |
Image preview control.
| |
SelectImageButton |
Button invoking the image selection dialog.
| |
ShowClearButton |
Indicates if the Clear button should be displayed.
| |
ShowPreview |
Indicates if the image preview be displayed.
| |
ShowTextBox |
Indicates if the path textbox should be displayed.
| |
TagKey |
Overrides the generation of the SPAN tag with custom tag.
(Overrides WebControlTagKey.) | |
UseCustomDialogConfig |
Gets or sets if custom dialog configuration is used.
| |
Value |
Selector value: URL of the media.
|