Spread for ASP.NET 7.0 Product Documentation
Inset Constructor()
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > Inset Class > Inset Constructor : Inset Constructor()


Glossary Item Box

Creates an empty set of margins (Inset object).

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New Inset()
C# 
public Inset()

Remarks

This method initializes an instance of the Inset class.

Example

This example creates a new instance of an inset.
C#Copy Code
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset();
inset.Left = 35;
inset.Top = 5;
inset.Right = 5;
inset.Bottom = 35;
FpSpread1.Sheets[0].AlternatingRows.Count = 3;
FpSpread1.Sheets[0].Rows[0].Height = 80;
FpSpread1.Sheets[0].Rows[1].Height = 80;
FpSpread1.Sheets[0].Rows[2].Height = 80;
FpSpread1.Sheets[0].SetValue(0, 0, "Test");
FpSpread1.Sheets[0].SetValue(1, 0, "For");
FpSpread1.Sheets[0].SetValue(2, 0, "Margin");
FpSpread1.Sheets[0].AlternatingRows[0].Margin = inset;
FpSpread1.Sheets[0].AlternatingRows[1].Margin = inset;
FpSpread1.Sheets[0].AlternatingRows[2].Margin = inset;
Visual BasicCopy Code
Dim inset As New FarPoint.Web.Spread.Inset()
inset.Left = 35
inset.Top = 5
inset.Right = 5
inset.Bottom = 35
FpSpread1.Sheets(0).AlternatingRows.Count = 3
FpSpread1.Sheets(0).Rows(0).Height = 80
FpSpread1.Sheets(0).Rows(1).Height = 80
FpSpread1.Sheets(0).Rows(2).Height = 80
FpSpread1.Sheets(0).SetValue(0, 0, "Test")
FpSpread1.Sheets(0).SetValue(1, 0, "For")
FpSpread1.Sheets(0).SetValue(2, 0, "Margin")
FpSpread1.Sheets(0).AlternatingRows(0).Margin = inset
FpSpread1.Sheets(0).AlternatingRows(1).Margin = inset
FpSpread1.Sheets(0).AlternatingRows(2).Margin = inset

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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