Spread Windows Forms 8.0 Product Documentation
CollectionEditorOptions Enumeration
Example Example 


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

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

Reference

FarPoint.Win.Spread Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.