KaxEditorParagraphs Property |
Gets the collection containing the paragraph styles to put in the Paragraph Style
dropdown.
Namespace: Kettic.AspNet.ControlsAssembly: 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; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public ReadOnly Property Paragraphs As EditorParagraphCollection
Get
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
property EditorParagraphCollection^ Paragraphs {
EditorParagraphCollection^ get ();
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member Paragraphs : EditorParagraphCollection with get
Property Value
Type:
EditorParagraphCollection
A NameValueCollection containing the paragraph styles to put in the Paragraph
Style dropdown. Default is an
empty NameValueCollection.
RemarksThe 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)
{
KaxEditor1.Paragraphs.Add("Clear Formatting", "body");
KaxEditor1.Paragraphs.Add("Heading 1", "<h1>");
KaxEditor1.Paragraphs.Add("Heading 2", "<h2>");
KaxEditor1.Paragraphs.Add("Heading 3", "<h3>");
KaxEditor1.Paragraphs.Add("Heading 2 Bordered", "<h2 class=\"bordered\">");
}
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
KaxEditor1.Paragraphs.Add("Clear Formatting", "body")
KaxEditor1.Paragraphs.Add("Heading 1", "<h1>")
KaxEditor1.Paragraphs.Add("Heading 2", "<h2>")
KaxEditor1.Paragraphs.Add("Heading 3", "<h3>")
KaxEditor1.Paragraphs.Add("Heading 2 Bordered", "<h2 class=\"bordered\">")
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also