MESCIUS SPREAD for Windows Forms 15.0J
Width プロパティ (SpreadCameraShape)
使用例 

オブジェクトの幅を取得または設定します。
構文
'宣言
 
Public Overrides Property Width As Integer
public override int Width {get; set;}
使用例
次のサンプルコードは、Widthプロパティを設定します。
FarPoint.Win.Spread.DrawingSpace.LightningBoltShape ls = new FarPoint.Win.Spread.DrawingSpace.LightningBoltShape();
ls.BackColor = System.Drawing.Color.DarkTurquoise;
fpSpread1.ActiveSheet.AddShape(ls, 10, 2);            
fpSpread1.ActiveSheet.Cells[10, 1].Text = "Shape";
FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape camera = new FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape();
camera.Formula = "B10:D18";
camera.ShadowColor = System.Drawing.Color.Red;
camera.ShadowDirection = FarPoint.Win.Spread.DrawingSpace.ShadowDirection.Right;
camera.ShapeOutlineStyle = System.Drawing.Drawing2D.DashStyle.Dot;
camera.ShapeOutlineThickness = 2;
camera.ShapeOutlineColor = System.Drawing.Color.Fuchsia;
camera.Location = new System.Drawing.Point(10, 40);
fpSpread1.ActiveSheet.AddShape(camera);
camera.Width = 300;
camera.Height = 200;
Dim ls As New FarPoint.Win.Spread.DrawingSpace.LightningBoltShape()
ls.BackColor = System.Drawing.Color.DarkTurquoise
fpSpread1.ActiveSheet.AddShape(ls, 10, 2)
fpSpread1.ActiveSheet.Cells(10, 1).Text = "Shape"
Dim camera As New FarPoint.Win.Spread.DrawingSpace.SpreadCameraShape()
camera.Formula = "B10:D18"
camera.ShadowColor = System.Drawing.Color.Red
camera.ShadowDirection = FarPoint.Win.Spread.DrawingSpace.ShadowDirection.Right
camera.ShapeOutlineStyle = System.Drawing.Drawing2D.DashStyle.Dot
camera.ShapeOutlineThickness = 2
camera.ShapeOutlineColor = System.Drawing.Color.Fuchsia
camera.Location = New System.Drawing.Point(10, 40)
fpSpread1.ActiveSheet.AddShape(camera)
camera.Width = 300
camera.Height = 200
参照

SpreadCameraShape クラス
SpreadCameraShape メンバ

 

 


© MESCIUS inc. All rights reserved.