PowerTools SPREAD for Windows Forms 8.0J
PercentSign プロパティ (PercentCellType)


パーセント記号として表示する文字を取得または設定します。
構文
'Declaration
 
Public Property PercentSign As String
'使用法
 
Dim instance As PercentCellType
Dim value As String
 
instance.PercentSign = value
 
value = instance.PercentSign
public string PercentSign {get; set;}

プロパティ値

パーセント記号を含む String

次のサンプルコードは、パーセントで書式設定された数値型セルを作成し、書式とパーセント記号を設定します。

FarPoint.Win.Spread.CellType.PercentCellType prctcell = new FarPoint.Win.Spread.CellType.PercentCellType();
object o;
o = "200";
prctcell.Format(o);
prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentBefore;
prctcell.PercentSign = "PRCNT";
fpSpread1.ActiveSheet.Cells[0, 0].CellType = prctcell;
fpSpread1.ActiveSheet.Cells[0, 0].Value = o;
Dim prctcell As New FarPoint.Win.Spread.CellType.PercentCellType()
Dim o As Object
o = "200"
prctcell.Format(o)
prctcell.PercentSign = "PRCNT"
prctcell.PositiveFormat = FarPoint.Win.Spread.CellType.PercentPositiveFormat.PercentBefore
FpSpread1.ActiveSheet.Cells(0, 0).CellType = prctcell
FpSpread1.ActiveSheet.Cells(0, 0).Value = o
参照

PercentCellType クラス
PercentCellType メンバ

 

 


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