Spread Windows Forms 12.0 Product Documentation
SheetView.DocumentModels Constructor
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView.DocumentModels Class : SheetView.DocumentModels Constructor
Creates a new, empty DocumentsModels object
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New SheetView.DocumentModels()
public SheetView.DocumentModels()
Example
This example specifies the background color of the first cell in the active sheet.
FarPoint.Win.Spread.SheetView.DocumentModels dm = new FarPoint.Win.Spread.SheetView.DocumentModels(); 
dm = fpSpread1.ActiveSheet.Models; 
FarPoint.Win.Spread.StyleInfo info = new FarPoint.Win.Spread.StyleInfo(); 
info.BackColor = Color.Red; 
dm.Style.SetDirectInfo(0, 0, info); 
Dim dm As New FarPoint.Win.Spread.SheetView.DocumentModels()
dm = FpSpread1.ActiveSheet.Models
Dim info As New FarPoint.Win.Spread.StyleInfo()
info.BackColor = Color.Red
dm.Style.SetDirectInfo(0, 0, info) 
See Also

Reference

SheetView.DocumentModels Class
SheetView.DocumentModels Members