Spread Windows Forms 6.0 Product Documentation
Scale(Single,Single) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > PSObject Class > Scale Method : Scale(Single,Single) Method


scaleX
Factor by which to scale the object in the horizontal dimension
scaleY
Factor by which to scale the object in the vertical dimension

Glossary Item Box

Adjusts the size of the object by the specified amount.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Scale( _
   ByVal scaleX As Single, _
   ByVal scaleY As Single _
) 
Visual Basic (Usage)Copy Code
Dim instance As PSObject
Dim scaleX As Single
Dim scaleY As Single
 
instance.Scale(scaleX, scaleY)
C# 
public void Scale( 
   float scaleX,
   float scaleY
)

Parameters

scaleX
Factor by which to scale the object in the horizontal dimension
scaleY
Factor by which to scale the object in the vertical dimension

Example

This example uses the Scale method.
C#Copy Code
fpSpread1.Sheets[0].Cells[0, 0].Text = "test";
FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape test = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape();
test.Formula = "A1:A5";
fpSpread1.Sheets[0].AddShape(test, 2, 1);
test.Scale(2, 2);
Visual BasicCopy Code
FpSpread1.Sheets(0).Cells(0, 0).Text = "test"
Dim test As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape()
test.Formula = "A1:A5"
test.Name = "rangeimage"
FpSpread1.Sheets(0).AddShape(test, 2, 1)
test.Scale(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

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