PrintDocument for WinForms
Text プロパティ (TableCell)


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > TableCell クラス : Text プロパティ
Gets or sets the text contained in the current cell.
シンタックス
'宣言
 
Public Property Text As System.String
'使用法
 
Dim instance As TableCell
Dim value As System.String
 
instance.Text = value
 
value = instance.Text
public System.string Text {get; set;}
解説

Setting this property checks the current value of the TableCell.RenderObject property. If it is a RenderText, the value is assigned to that object's RenderText.Text.

Otherwise, a new RenderText initialized with value is created and assigned to TableCell.RenderObject. Note that properties from the old TableCell.RenderObject are copied to the newly created RenderText using the RenderObject.AssignFrom method. In particular, this copies the style from the old object to the new one.

Getting this property returns RenderText.Text of RenderText assigned to the TableCell.RenderObject on the current cell, or an empty string if the current value of TableCell.RenderObject is not a RenderText.

参照

TableCell クラス
TableCell メンバ
RenderObject プロパティ
Image プロパティ
Area プロパティ