Click or drag to resize
DiscussionMacroResolver Class
Methods for resolving macros within discussion posts.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.HelpersDiscussionMacroResolver

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public class DiscussionMacroResolver : CoreMethods

The DiscussionMacroResolver type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConvertLineBreaksToHTML
If true, the line breaks are converted to HTML br tags.
Public propertyEnableBold
Gets or sets the value that indicates whether bold macros are enabled.
Public propertyEnableCode
Gets or sets the value that indicates whether code macros are enabled.
Public propertyEnableColor
Gets or sets the value that indicates whether color macros are enabled.
Public propertyEnableImage
Gets or sets the value that indicates whether Image macros are enabled.
Public propertyEnableItalics
Gets or sets the value that indicates whether italics macros are enabled.
Public propertyEnableQuote
Gets or sets the value that indicates whether Quote macros are enabled.
Public propertyEnableSize
Gets or sets the value that indicates whether size macros are enabled.
Public propertyEnableStrikeThrough
Gets or sets the value that indicates whether strikeThrough macros are enabled.
Public propertyEnableUnderline
Gets or sets the value that indicates whether underline macros are enabled.
Public propertyEnableURL
Gets or sets the value that indicates whether URL macros are enabled.
Public propertyEncodeText
If true, the text outside of the macros is encoded.
Public propertyMaxImageSideSize
Gets or sets max side size of image.
Public propertyMaxTextSize
Gets or sets max text size of image.
Public propertyQuotePostText
Gets or sets the text which should be displayed in quote area after user name.
Public propertyStatic memberRegExBBTag
Regular expression for the BB tag.
Public propertyStatic memberRegExBBTagExpression
Regular expression for the parsed BB tag expression.
Public propertyResolveToPlainText
If true, the tags are resolved to the plain text version.
Public propertyTextSizeUnit
Gets or sets the text size unit which should be used.
Public propertyUseNoFollowForLinks
Gets or sets the value that indicates whether rel="nofollow" should be used for resolved links
Top
Methods
  NameDescription
Public methodStatic memberGetBold
Returns the forum discussion bold tag.
Protected methodGetClosingTag
Gets the closing tag for specified BB tag.
Public methodStatic memberGetColor
Returns the forum discussion color tag.
Public methodStatic memberGetImage
Returns the forum discussion image tag.
Public methodStatic memberGetItalics
Returns the forum discussion italics tag.
Public methodStatic memberGetQuote
Returns the forum discussion Quote tag.
Public methodStatic memberGetSize
Returns the forum discussion size tag.
Public methodStatic memberGetStrikeThrough
Returns the forum discussion strike through tag.
Public methodStatic memberGetUnderline
Returns the forum discussion underline tag.
Public methodStatic memberGetURL
Returns the forum discussion URL tag.
Public methodStatic memberIsBBCodeEnabled
Returns true if BBcode is enabled for given actions set (for DB column with stored enabled actions).
Public methodStatic memberIsURL
Returns true if the given string is URL, decodes the string before the validation.
Protected methodProcessText
Processes the standard text.
Public methodStatic memberRemoveTags
Remove all BB tags from the text.
Public methodResolveMacros(String)
Resolves BB macros in a given text.
Public methodResolveMacros(String, String)
Resolves BB macros in a given text.
Public methodStatic memberSetBBCode
Sets enabled BBcode (for DB column with stored enabled actions).
Top
See Also