SilverLight0001 のバックアップ(No.1) - PukiWiki

SilverLight?

RichTextBoxの調査

できないこと
[edit]

このページのトップへ

RichTextBox選択した文字列の後ろにCanvasオブジェクトを追加する
[edit]

Canvas canvas = new Canvas();
canvas.Opacity = 0.5;
canvas.Width = 4;
canvas.Height = 4;

//選択する文字列をもう一回追加します。
//しないと削除されます。
Run ss = new Run();
ss.Text = this.rtb.Selection.Text;

this.rtb.Selection.Insert(ss);

InlineUIContainer uIContainer = new InlineUIContainer();
uIContainer.Child = canvas; 

this.rtb.Selection.Insert(uIContainer);
このページのトップへ

RichTextBoxの一番トップへスクロールさせる
[edit]

TextPointer pstart = this.rtb.ContentStart;
this.rtb.Selection.Select(pstart, pstart);

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

G|Cg|C@Amazon Yahoo yV

z[y[W yVoC[UNLIMITȂ1~] COiq COsیI