Click or drag to resize
KaxEditorParagraphs Property
Gets the collection containing the paragraph styles to put in the Paragraph Style dropdown.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public EditorParagraphCollection Paragraphs { get; }

Property Value

Type: EditorParagraphCollection
A NameValueCollection containing the paragraph styles to put in the Paragraph Style dropdown. Default is an empty NameValueCollection.
Remarks

The contents of this collection will override the default paragraph styles available in the Paragraph Style dropdown.

Note: KaxEditor also supports block format with css class set. See the example below.

Examples
This example demonstrates how to put several paragraph styles in the Paragraph Style dropdown.
private void Page_Load(object sender, EventArgs e)
{
    //Add clear formatting
    KaxEditor1.Paragraphs.Add("Clear Formatting", "body");
    //Add the standard paragraph styles
    KaxEditor1.Paragraphs.Add("Heading 1", "<h1>");
    KaxEditor1.Paragraphs.Add("Heading 2", "<h2>");
    KaxEditor1.Paragraphs.Add("Heading 3", "<h3>");
    //Add paragraph style with block format and css class
    KaxEditor1.Paragraphs.Add("Heading 2 Bordered", "<h2 class=\"bordered\">");
}
See Also