Spread Windows Forms 10.0 Product Documentation
Models Property
Example 


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
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)
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)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Using Sheet Models

 

 


Copyright © GrapeCity, inc. All rights reserved.