Spread Windows Forms 7.0 Product Documentation
Models Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : Models Property


Glossary Item Box

Gets or sets a SheetView.DocumentModels object that contains all the models for the sheet.

Syntax

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

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.
C#Copy Code
fpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2);
Visual BasicCopy Code
FpSpread1.ActiveSheet.Models.Span.Add(0, 0, 2, 2)

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

SheetView Class
SheetView Members

User-Task Documentation

Using Sheet Models

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.