Gets the collection containing the colors to put in the Foreground and Background color dropdowns.
Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)
Syntax
Return Value
A StringCollection containing the colors to put in the Foreground and Background
color dropdowns. Default is an
empty StringCollection.
Example
This example demonstrates how to put only Red, Green and Blue into the Foreground
and Background dropdowns.
| Visual Basic | Copy Code |
|---|
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
RadEditor1.Colors.Add("Red")
RadEditor1.Colors.Add("Green")
RadEditor1.Colors.Add("Blue")
End Sub
|
| C# | Copy Code |
|---|
private void Page_Load(object
sender, EventArgs e)
{
RadEditor1.Colors.Add("Red");
RadEditor1.Colors.Add("Green");
RadEditor1.Colors.Add("Blue");
}
|
Remarks
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also