コード例 #1
0
 /// <summary>
 /// Sets the indentation of this paragraph on the left side.
 /// </summary>
 public void SetIndentationLeft(float indentation, bool autoindent)
 {
     if (autoindent)
     {
         IndentationLeft = ListSymbol.GetWidthPoint();
     }
     else
     {
         IndentationLeft = indentation;
     }
 }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();

            ListSymbol.Clear();

            for (int i = 32; i <= 126; i++)
            {
                ListSymbol.Add(Char.ConvertFromUtf32(i).ToString());
            }

            for (int i = 161; i <= 255; i++)
            {
                ListSymbol.Add(Char.ConvertFromUtf32(i).ToString());
            }

            DataContext = this;
        }