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


Glossary Item Box

Gets or sets whether Spread controls automatic scaling with a different system dpi, Spread only supports one dimension so the application should use AutoScaleMode.Dpi for correct scaling, or else scaling uses the application width.

Syntax

Visual Basic (Declaration) 
Public Property SpreadScaleMode As ScaleMode
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As ScaleMode
 
instance.SpreadScaleMode = value
 
value = instance.SpreadScaleMode
C# 
public ScaleMode SpreadScaleMode {get; set;}

Example

This example uses the SpreadScaleMode property.
C#Copy Code
SuspendLayout();
AutoScaleDimensions = new System.Drawing.SizeF(96.0F, 96.0F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
fpSpread1.Location = new System.Drawing.Point(23, 86);
fpSpread1.Size = new System.Drawing.Size(356, 161);
fpSpread1.SpreadScaleMode = FarPoint.Win.Spread.FpSpread.ScaleMode.ZoomDpiSupport;
ResumeLayout();
VB.NETCopy Code
SuspendLayout()
AutoScaleDimensions = New System.Drawing.SizeF(96.0F, 96.0F)
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi
FpSpread1.Location = New System.Drawing.Point(23, 86)
FpSpread1.Size = New System.Drawing.Size(356, 161)
FpSpread1.SpreadScaleMode = FarPoint.Win.Spread.FpSpread.ScaleMode.ZoomDpiSupport
ResumeLayout()

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

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