PowerTools SPREAD for Windows Forms 10.0J
NewZoomFactor プロパティ


SPREADの新しい倍率を取得または設定します。
構文
'Declaration
 
Public Property NewZoomFactor As Single
'使用法
 
Dim instance As ZoomEventArgs
Dim value As Single
 
instance.NewZoomFactor = value
 
value = instance.NewZoomFactor
public float NewZoomFactor {get; set;}

プロパティ値

倍率を表す単精度浮動小数点数
次のサンプルコードは、元の倍率と新しい倍率を返します。
fpSpread1.AllowUserZoom =true; 

private void fpSpread1_UserZooming(object sender, FarPoint.Win.Spread.ZoomEventArgs e)
{
   listBox1.Items.Add(e.NewZoomFactor);
   listBox1.Items.Add(e.OldZoomFactor);
}
FpSpread1.AllowUserZoom = True 

Private Sub FpSpread1_UserZooming(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ZoomEventArgs) Handles FpSpread1.UserZooming
   ListBox1.Items.Add(e.NewZoomFactor)
   ListBox1.Items.Add(e.OldZoomFactor)
End Sub
参照

ZoomEventArgs クラス
ZoomEventArgs メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.