Spread Windows Forms 11.0 Product Documentation
CollectionEditorOptions Enumeration
Example Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace : CollectionEditorOptions Enumeration
Specifies which UITypeEditor to invoke directly at runtime.
Syntax
'Declaration
 
Public Enum CollectionEditorOptions 
   Inherits System.Enum
'Usage
 
Dim instance As CollectionEditorOptions
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.
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);
}
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

See Also

Reference

FarPoint.Win.Spread Namespace