MESCIUS SPREAD for Windows Forms 17.0J
Font プロパティ (CharBoxInfo)

キャラクターボックスのフォントを取得または設定します。
構文
'Declaration
 
Public Overridable Property Font As Font
public virtual Font Font {get; set;}

プロパティ値

キャラクターボックスのテキストのフォントを示す<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.CharBoxInfo.Font" />。
解説

Fontプロパティはアンビエントプロパティです。 アンビエントプロパティは、設定されていない場合、親コントロールから取得されるコントロールプロパティです。 たとえば、System.Windows.Forms.Buttonは、デフォルトでその親のSystem.Windows.Forms.Formと同じSystem.Windows.Forms.Control.BackColorを持ちます。

<b>Font</b>は不変(つまり、ユーザーがそのプロパティをまったく調整できない)なので、<b>Font</b>プロパティには新しい<b>Font</b>を割り当てることしかできません。ただし、既存のフォントを新しいフォントのベースにすることは可能です。

参照

CharBoxInfo クラス
CharBoxInfo メンバ

 

 


© MESCIUS inc. All rights reserved.