Click or drag to resize
CMSEditableImage Class
Editable image control.
Inheritance Hierarchy

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
Syntax
C#
public class CMSEditableImage : CMSAbstractEditableControl, 
	INamingContainer

The CMSEditableImage type exposes the following members.

Constructors
  NameDescription
Public methodCMSEditableImage
Constructor.
Public methodCMSEditableImage(IPageManager)
Constructor, initializes the parent portal manager.
Top
Methods
  NameDescription
Protected methodCreateChildControls
Creates the child control hierarchy.
(Overrides ControlCreateChildControls.)
Public methodGetContent
Gets the current control content.
(Overrides CMSAbstractEditableControlGetContent.)
Protected methodGetContentID
Returns content identification for storage
(Inherited from CMSAbstractEditableControl.)
Public methodGetEditDialogParameters
Gets the custom dialog parameters used in the On-site editing when opening the modal edit dialog. The url parameters are in the following format: "name=value"
(Overrides CMSAbstractEditableControlGetEditDialogParameters.)
Public methodGetSpellCheckFields
Returns the list of the field IDs (Client IDs of the inner controls) that should be spell checked.
(Inherited from CMSAbstractEditableControl.)
Public methodIsValid
Returns true if entered data is valid. If data is invalid, it returns false and displays an error message.
(Inherited from CMSAbstractEditableControl.)
Public methodLoadContent(String, Boolean)
Loads the control content.
(Overrides CMSAbstractEditableControlLoadContent(String, Boolean).)
Public methodLoadContent(PageInfo, Boolean)
Load the content to the region, applies the InheritContent.
(Inherited from CMSAbstractEditableControl.)
Protected methodOnPreRender
Prerender event handler.
(Overrides ControlOnPreRender(EventArgs).)
Protected methodRender
Renders the control.
(Overrides CMSAbstractEditableControlRender(HtmlTextWriter).)
Protected methodResolveMacros
Resolves the macros within current context.
(Inherited from CMSAbstractEditableControl.)
Public methodSaveContent
Saves the control content.
(Inherited from CMSAbstractEditableControl.)
Top
Extension Methods
  NameDescription
Public Extension MethodAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCallHandled
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.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetCssClasses
Returns all CSS classes of control.
(Defined by ControlsExtensions.)
Public Extension MethodGetRenderedHTML
Returns HTML which would be rendered by control to page.
(Defined by ControlsExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodRemoveCssClass
Removes all occurrences. Class names are case sensitive.
(Defined by ControlsExtensions.)
Public Extension MethodSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
(Defined by ControlsExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldimgImage
Image.
Protected fieldlblError
Error label.
Protected fieldlblTitle
Region title.
Protected fieldmAlternateText
Alternate text.
Protected fieldmDisplaySelectorTextBox
Display image selector text box.
Protected fieldmImageCssClass
Image class.
Protected fieldmImageStyle
Image style.
Protected fieldmImageTitle
Image title.
Protected fieldpnlEditor
Region panel.
Protected fieldselPath
Image selector.
Top
Properties
  NameDescription
Public propertyAlternateText
Alternative image text.
Public propertyDisplaySelectorTextBox
Display selector text box.
Protected propertyEditDialogWidth
Edit dialog width which will be opened for editing of the editable control. Used in On-site editing.
(Inherited from CMSAbstractEditableControl.)
Protected propertyEditPageUrl
Edit page url which will be used for editing of the editable control. Used in On-site editing.
(Overrides CMSAbstractEditableControlEditPageUrl.)
Protected propertyEmptyContent
Indicates whether the control contains any editable content
(Inherited from CMSAbstractEditableControl.)
Public propertyCheckPermissions
Gets or sets the value that indicates whether the permissions are checked.
(Inherited from CMSAbstractEditableControl.)
Public propertyImageControl
Returns instance of image control.
Public propertyImageCssClass
Image CssClass.
Public propertyImageHeight
Image height.
Public propertyImageStyle
Image Style.
Public propertyImageTitle
Control title which is displayed in the editable mode.
Public propertyImageWidth
Image width.
Public propertyInheritContent
If set, the region uses the content inheritance. If the region content of the current document is empty then the content of the first non-empty parent is used. Note: The editable region does not combine content of the current document with the content of the parent documents.
(Inherited from CMSAbstractEditableControl.)
Public propertyInstanceGUID
If set, the instance guid is used as a key for the editable control, making the content available on other documents which use the same page template with this control.
(Inherited from CMSAbstractEditableControl.)
Public propertyIsLiveSite
Indicates if control is used in live site mode.
Public propertyPageManager
Page manager control.
(Inherited from CMSAbstractEditableControl.)
Public propertyResizeToHeight
Height the image should be automatically resized to after it is uploaded.
Public propertyResizeToMaxSideSize
Max side size the image should be automatically resized to after it is uploaded.
Public propertyResizeToWidth
Width the image should be automatically resized to after it is uploaded.
Public propertySelectOnlyPublished
If set, only published content is displayed on a live site.
(Inherited from CMSAbstractEditableControl.)
Protected propertySourcePageInfo
Gets the source page info
(Inherited from CMSAbstractEditableControl.)
Public propertyViewMode
Control view mode.
(Inherited from CMSAbstractEditableControl.)
Top
See Also