Spread Windows Forms 11.0 Product Documentation
Models Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : Models Property
Gets or sets a SheetView.DocumentModels object that contains all the models for the sheet.
Syntax
'Declaration
 
Public Property Models As SheetView.DocumentModels
'Usage
 
Dim instance As SheetView
Dim value As SheetView.DocumentModels
 
instance.Models = value
 
value = instance.Models
public SheetView.DocumentModels Models {get; set;}

Property Value

DocumentModels object containing all the models for the sheet
Exceptions
ExceptionDescription
Model object is not specified (or specified object is null)
Model.ColumnAxis object is not specified (or specified object is null)
Model.ColumnHeaderData object is not specified (or specified object is null)
Model.ColumnHeaderRowAxis object is not specified (or specified object is null)
Models.ColumnHeaderSpan object is not specified (or specified object is null)
Model.ColumnHeaderStyle object is not specified (or specified object is null)
Model.Data object is not specified (or specified object is null)
Model.RowAxis object is not specified (or specified object is null)
Model.RowHeaderColumnAxis object is not specified (or specified object is null)
Model.RowHeaderData object is not specified (or specified object is null)
Model.RowHeaderSpan object is not specified (or specified object is null)
Model.RowHeaderStyle object is not specified (or specified object is null)
Model.Selection object is not specified (or specified object is null)
Model.Span object is not specified (or specified object is null)
Model.Style object is not specified (or specified object is null)
Remarks

This property is available at run time only.

Example
This example creates a span in the sheet based on the SpanModel contained in the Models of the SheetView.
fpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2);
FpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2)
See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Using Sheet Models