RenderObject.Clipプロパティを設定します。
| サンプルコード(VB) |
コードのコピー
|
|---|---|
' 表示領域で切り取って描画します。(既定の設定) texts(0).Text = "表示領域で切り取って描画する" texts(0).Clip = True ' テキストを折り返さずに描画します。 texts(1).Text = "表示領域で切り取らずに描画する" texts(1).Clip = False |
|
| サンプルコード(C#) |
コードのコピー
|
|---|---|
// 表示領域で切り取って描画します。(既定の設定) texts[0].Text = "表示領域で切り取って描画する"; texts[0].Clip = true; // テキストを折り返さずに描画します。 texts[1].Text = "表示領域で切り取らずに描画する"; texts[1].Clip = false; |
|