Click or drag to resize
EmailTemplateInfoExtensionsContainsPreheaderMacro Method
Indicates whether the template code contains preheader macro.

Namespace: CMS.Newsletters.Internal
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
public static bool ContainsPreheaderMacro(
	this EmailTemplateInfo template
)

Parameters

template
Type: CMS.NewslettersEmailTemplateInfo

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EmailTemplateInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The method doesn't work correctly in certain cases such as open macros, macro in comments...
See Also