| Visual Basic (Declaration) | |
|---|---|
Public Property Models As SheetView.DocumentModels | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As SheetView Dim value As SheetView.DocumentModels instance.Models = value value = instance.Models | |
| C# | |
|---|---|
public SheetView.DocumentModels Models {get; set;} | |
Property Value
DocumentModels object containing all the models for the sheet| Exception | Description |
|---|---|
| System.ArgumentNullException | Model object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.ColumnAxis object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.ColumnHeaderData object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.ColumnHeaderRowAxis object is not specified (or specified object is null) |
| System.ArgumentNullException | Models.ColumnHeaderSpan object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.ColumnHeaderStyle object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.Data object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.RowAxis object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.RowHeaderColumnAxis object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.RowHeaderData object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.RowHeaderSpan object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.RowHeaderStyle object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.Selection object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.Span object is not specified (or specified object is null) |
| System.ArgumentNullException | Model.Style object is not specified (or specified object is null) |
This property is available at run time only.
This example creates a span in the sheet based on the SpanModel contained in the Models of the SheetView.
| C# | Copy Code |
|---|---|
fpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2); | |
| Visual Basic | Copy Code |
|---|---|
FpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2) | |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8