Spread Windows Forms 6.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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SheetView Class
SheetView Members

User-Task Documentation

Using Sheet Models

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