KaxEditorFontSizes Property |
Gets the collection containing the custom font sizes to put in the [Size] 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 EditorFontSizeCollection FontSizes { get; }
<PersistenceModeAttribute(PersistenceMode.InnerProperty)>
Public ReadOnly Property FontSizes As EditorFontSizeCollection
Get
public:
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
property EditorFontSizeCollection^ FontSizes {
EditorFontSizeCollection^ get ();
}
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
member FontSizes : EditorFontSizeCollection with get
Property Value
Type:
EditorFontSizeCollection
A string collection containing the custom font sizes to put in the Size dropdown.
Default is an
empty StringCollection.
RemarksThe contents of this collection will override the default font sizes
available in the [Size] dropdown. In order to extend the default set you should add
the default font sizes and the new font sizes. The default font sizes are: 1, 2, 3,
4, 5, 6 and 7.
Note: the minimum font size is 1, the maximum is 7.
Examples
This example demonstrates how to remove the font size 1 from the Size dropdown.
private void Page_Load(object sender, EventArgs e)
{
KaxEditor1.FontSizes.Add(2);
KaxEditor1.FontSizes.Add(3);
KaxEditor1.FontSizes.Add(4);
KaxEditor1.FontSizes.Add(5);
KaxEditor1.FontSizes.Add(6);
KaxEditor1.FontSizes.Add(7);
}
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
KaxEditor1.FontSizes.Add(2)
KaxEditor1.FontSizes.Add(3)
KaxEditor1.FontSizes.Add(4)
KaxEditor1.FontSizes.Add(5)
KaxEditor1.FontSizes.Add(6)
KaxEditor1.FontSizes.Add(7)
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