Spread Windows Forms 6.0 Product Documentation
CollectionEditorOptions Enumeration
Example  See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : CollectionEditorOptions Enumeration


Glossary Item Box

Specifies which UITypeEditor to invoke directly at runtime.

Syntax

Visual Basic (Declaration) 
Public Enum CollectionEditorOptions 
   Inherits System.Enum
Visual Basic (Usage)Copy Code
Dim instance As CollectionEditorOptions
C# 
public enum CollectionEditorOptions : System.Enum 

Members

MemberDescription
AlternatingRowDisplays the AlternatingRow Collection Editor
GroupInfoDisplays the GroupInfo Collection Editor
NamedStylesDisplays the NamedStyles Collection Editor
SheetsDisplays the Sheets Collection Editor

Example

This example brings up the UITypeEditors given certain conditions.
C#Copy Code
if (fpSpread1.NamedStyles.Count < 1) {
fpSpread1.ShowCollectionEditor(fpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.NamedStyles);
}
if (fpSpread1.Sheets.Count < 2) {
fpSpread1.ShowCollectionEditor(fpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.Sheets);
}
if (fpSpread1.ActiveSheet.GroupInfos.Count < 1) {
fpSpread1.ShowCollectionEditor(fpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.GroupInfo);
}
Visual BasicCopy Code
If fpSpread1.NamedStyles.Count < 1 Then
fpSpread1.ShowCollectionEditor(fpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.NamedStyles)
End If
If fpSpread1.Sheets.Count < 2 Then
fpSpread1.ShowCollectionEditor(fpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.Sheets)
End If
If FpSpread1.ActiveSheet.GroupInfos.Count < 1 Then
FpSpread1.ShowCollectionEditor(FpSpread1, FarPoint.Win.Spread.CollectionEditorOptions.GroupInfo)
End If

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CollectionEditorOptions

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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