Click or drag to resize
MacroEditor Class
Macro editor control
Inheritance Hierarchy

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 9.0.0
Syntax
C#
public class MacroEditor : CMSPlaceHolder, 
	ICallbackEventHandler

The MacroEditor type exposes the following members.

Constructors
  NameDescription
Public methodMacroEditor
Top
Properties
  NameDescription
Protected propertyASCXResolver
Gets or sets context resolver used for getting autocomplete options in ASCX Mode.
Public propertyASCXRootObject
Gets or sets the root object the fields of which will be used as root help in ASCX mode.
Public propertyAutoCompletionObject
Gets the name of java script object of the auto completion extender.
Public propertyEditor
Gets the editor control.
Public propertyEditorFocusLostScript
Gets or sets the code which is executed when editor lost focus.
Public propertyEnabled
Gets or sets a value indicating whether the Web server control is enabled.
Public propertyHeight
Gets or sets the height of the editor
Public propertyIsLiveSite
Indicates if control is used on live site.
(Inherited from CMSPlaceHolder.)
Public propertyLeftOffset
Gets or sets the left offset of the autocomplete control (to pos it correctly).
Public propertyMixedMode
Indicates whether the editor is in pure currentText editing mode (whole currentText is considered as currentText) or mixed mode, where auto completion is fired only inside {%%} environment.
Public propertyNamespaceUsings
Gets or sets the list of currentText namespaces for which the methods are permanently available (visible in AutoCompletion without any context). The namespaces are used only for root hints
Protected propertyStatic memberPredefinedSnippets
Gets the list of predefined snippets.
Public propertyReadOnly
Gets or sets whether the control is read only
Public propertyResolver
Gets or sets context resolver used for getting autocomplete options.
Public propertyResolverName
Gets or sets the name of the resolver to use. This property is used if Resolver property is not explicitly set.
Public propertyShortID
Short ID of the control.
(Inherited from CMSPlaceHolder.)
Public propertyShowAutoCompletionAbove
If true, tree is shown above the editor, otherwise it is below (default pos is below).
Public propertyShowOnlyInnerSources
If true, no global objects are shown, only inner sources (named data sources, etc.) are shown as hints.
Public propertySingleLineMode
Determines whether the editor is in single line mode (i.e. only one line of text can be edited).
Public propertySyntaxHighlightingEnabled
Gets if syntax highlighting is enabled for this control.
Public propertyText
Gets or sets the editor currentText.
Public propertyTopOffset
Gets or sets the top offset of the autocomplete control (to pos it correctly).
Public propertyUseAutoComplete
Indicates whether the autocompletion feature is enabled or not.
Public propertyWidth
Gets or sets the width of the editor
Top
Methods
  NameDescription
Public methodAppend(String)
Appends the given content to the placeholder
(Inherited from CMSPlaceHolder.)
Public methodAppend(Control)
Appends the given control to the placeholder
(Inherited from CMSPlaceHolder.)
Public methodClear
Clears the placeholder content
(Inherited from CMSPlaceHolder.)
Protected methodCreateChildControls
Creates inner controls
(Overrides ControlCreateChildControls.)
Protected methodFinishCurrent
Appends the given content to the placeholder
(Inherited from CMSPlaceHolder.)
Public methodGetCallbackResult
Gets the callback result
Protected methodOnInit
Init event handler.
(Inherited from CMSPlaceHolder.)
Protected methodOnPreRender
PreRender event handler
(Overrides CMSPlaceHolderOnPreRender(EventArgs).)
Public methodRaiseCallbackEvent
Processes the callback
Protected methodRender
Render event handler
(Overrides ControlRender(HtmlTextWriter).)
Top
Extension Methods
  NameDescription
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 MethodGetString
Gets the string by the specified resource key
(Defined by ControlsExtensions.)
Top
See Also