私の理解が正しければ、基本的に or*
を線として使いたいと思います。通常のソリッド、ダッシュ、ドットなどを使用するのではなく、物理的な文字を使用したいですか? しかし、それらのキャラクターをオブジェクトにしたいのです。^
!
Geometry
次のようなことができます。
// Create a line of characters.
string lineString = "^^^^^^^^^^^^^^";
// Create Formatted Text, customize accordingly.
FormattedText formatText = new FormattedText(
lineString, CultureInfo.GetCultureInfo("en-us"),
FlowDirection.LeftToRight,
new Typeface("Arial"), 32, Brushes.Black);
// Set the Width and Height.
formatText.MaxTextWidth = 200;
formatText.MaxTextHeight = 100;
// You can obviously add as many customization's and outputs of your choice.
これはあなたが望んでいるものではないことを理解していstring
ますGeometry
. それを達成するために; あなたはただする必要があります:
// Build Geometry object to represent text.
Geometry lineGeometry = formatText.BuildGeometry(new System.Windows.Point(0, 0));
// Tailor Geometry object that represents our item.
Geometry hGeo = formatText.BuildHighlightGeometry(new System.Windows.Point(0, 0));
これで基本的に、Geometry
「^^^^^^^^」を表すオブジェクトが作成されました。
うまくいけば、私は正しく理解しましたが、それで問題が解決するかどうかはわかりません。