Spread Windows Forms 7.0 Product Documentation
UnknownText Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ColorPickerCellType Class : UnknownText Property


Glossary Item Box

Gets or sets the text for unknown colors.

Syntax

Visual Basic (Declaration) 
Public Property UnknownText As String
Visual Basic (Usage)Copy Code
Dim instance As ColorPickerCellType
Dim value As String
 
instance.UnknownText = value
 
value = instance.UnknownText
C# 
public string UnknownText {get; set;}

Example

This example creates a ColorPicker cell type.
C#Copy Code
FarPoint.Win.Spread.CellType.ColorPickerCellType cp = new FarPoint.Win.Spread.CellType.ColorPickerCellType();
cp.AllowFullOpen = true;
cp.AnyColor = false;
cp.Caption = "ColorPicker";
cp.CustomColors = new int[] {255, 190, 50};
cp.FullOpen = true;
cp.UnknownText = "Custom Color";
cp.UnknownTextStyle = FarPoint.Win.Spread.CellType.UnknownTextStyle.Custom;
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cp;
Visual BasicCopy Code
Dim cp As New FarPoint.Win.Spread.CellType.ColorPickerCellType
cp.AllowFullOpen = True
cp.AnyColor = True
cp.CustomColors = New Integer() {255, 190, 50}
cp.Caption = "ColorPicker"
cp.FullOpen = True
cp.UnknownText = "FarPoint"
cp.UnknownTextStyle = FarPoint.Win.Spread.CellType.UnknownTextStyle.Custom
cp.Style = FarPoint.Win.Spread.CellType.ColorPickerStyle.BoxedWithText
FpSpread1.ActiveSheet.Cells(0, 0).CellType = cp

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.