Spread Windows Forms 7.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 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.