this.HiddenChars.AddSymbol(' ', '□');
else
this.HiddenChars.RemoveSymbol(' ');
- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.InlineChar));
}
}
this.HiddenChars.AddSymbol(' ', 'ロ');
else
this.HiddenChars.RemoveSymbol(' ');
- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.InlineChar));
}
}
this.HiddenChars.AddSymbol('\t', '>');
else
this.HiddenChars.RemoveSymbol('\t');
- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.InlineChar));
}
}
set
{
this._ShowLineBreak = value;
- this.ChangedRenderResource(this, new ChangedRenderRsourceEventArgs(ResourceType.InlineChar));
}
}
SemaphoreSlim Semaphore = new SemaphoreSlim(MaxSemaphoreCount);
LineBreakMethod _LineBreak;
int _TabStops, _LineBreakCharCount = 80;
+ bool _ShowFullSpace, _ShowHalfSpace, _ShowTab, _ShowLineBreak;
/// <summary>
/// 一行当たりの最大文字数
}
/// <summary>
+ /// ShowFullSpace変更時に呼び出されるイベント
+ /// </summary>
+ public event EventHandler ShowFullSpaceChanged;
+
+ /// <summary>
+ /// 全角スペースを表示するかどうか
+ /// </summary>
+ public bool ShowFullSpace
+ {
+ get { return this._ShowFullSpace; }
+ set
+ {
+ this._ShowFullSpace = value;
+ this.ShowFullSpaceChanged(this, null);
+ }
+ }
+
+ /// <summary>
+ /// ShowHalfSpace変更時に呼び出されるイベント
+ /// </summary>
+ public event EventHandler ShowHalfSpaceChanged;
+
+ /// <summary>
+ /// 半角スペースを表示するかどうか
+ /// </summary>
+ public bool ShowHalfSpace
+ {
+ get { return this._ShowHalfSpace; }
+ set
+ {
+ this._ShowHalfSpace = value;
+ this.ShowHalfSpaceChanged(this, null);
+ }
+ }
+
+ /// <summary>
+ /// ShowTab変更時に呼び出されるイベント
+ /// </summary>
+ public event EventHandler ShowTabChanged;
+
+ /// <summary>
+ /// TABを表示するかどうか
+ /// </summary>
+ public bool ShowTab
+ {
+ get { return this._ShowTab; }
+ set
+ {
+ this._ShowTab = value;
+ this.ShowTabChanged(this, null);
+ }
+ }
+
+ /// <summary>
+ /// ShowLineBreak変更時に呼び出されるイベント
+ /// </summary>
+ public event EventHandler ShowLineBreakChanged;
+ /// <summary>
+ /// 改行を表示するかどうか
+ /// </summary>
+ public bool ShowLineBreak
+ {
+ get { return this._ShowLineBreak; }
+ set
+ {
+ this._ShowLineBreak = value;
+ this.ShowLineBreakChanged(this, null);
+ }
+ }
+
+ /// <summary>
/// 選択範囲にあるグリッパーのリスト
/// </summary>
internal GripperRectangle SelectGrippers
int TabWidthChar { get; set; }
/// <summary>
+ /// 全角スペースを表示するかどうか
+ /// </summary>
+ bool ShowFullSpace { get; set; }
+
+ /// <summary>
+ /// 半角スペースを表示するかどうか
+ /// </summary>
+ bool ShowHalfSpace { get; set; }
+
+ /// <summary>
+ /// TABを表示するかどうか
+ /// </summary>
+ bool ShowTab { get; set; }
+
+ /// <summary>
+ /// 改行を表示するかどうか
+ /// </summary>
+ bool ShowLineBreak { get; set; }
+
+ /// <summary>
/// 1文字当たりの高さと幅
/// </summary>
Size emSize { get; }
{
this.render.RightToLeft = this.Document.RightToLeft;
};
+ this.Document.ShowFullSpaceChanged += (s, e) =>
+ {
+ this.render.ShowFullSpace = this.Document.ShowFullSpace;
+ this._LayoutLines.ClearLayoutCache();
+ };
+ this.Document.ShowHalfSpaceChanged += (s, e) =>
+ {
+ this.render.ShowHalfSpace = this.Document.ShowHalfSpace;
+ this._LayoutLines.ClearLayoutCache();
+ };
+ this.Document.ShowTabChanged += (s, e) =>
+ {
+ this.render.ShowTab = this.Document.ShowTab;
+ this._LayoutLines.ClearLayoutCache();
+ };
+ this.Document.ShowLineBreakChanged += (s, e) =>
+ {
+ this.render.ShowLineBreak = this.Document.ShowLineBreak;
+ this._LayoutLines.ClearLayoutCache();
+ };
}
protected LineToIndexTable _LayoutLines
this.Document.UrlMark = this.MarkURL;
break;
case "ShowFullSpace":
- this.Render.ShowFullSpace = this.ShowFullSpace;
+ this.Document.ShowFullSpace = this.ShowFullSpace;
break;
case "ShowHalfSpace":
- this.Render.ShowHalfSpace = this.ShowHalfSpace;
+ this.Document.ShowHalfSpace = this.ShowHalfSpace;
break;
case "ShowTab":
- this.Render.ShowTab = this.ShowTab;
+ this.Document.ShowTab = this.ShowTab;
break;
case "ShowLineBreak":
- this.Render.ShowLineBreak = this.ShowLineBreak;
+ this.Document.ShowLineBreak = this.ShowLineBreak;
break;
case "FlowDirection":
this.Document.RightToLeft = this.FlowDirection == System.Windows.FlowDirection.RightToLeft;
set;
}
+ public bool ShowLineBreak
+ {
+ get
+ {
+ throw new NotImplementedException();
+ }
+
+ set
+ {
+ throw new NotImplementedException();
+ }
+ }
+
public event ChangedRenderResourceEventHandler ChangedRenderResource;
public void DrawCachedBitmap(Rectangle rect)
set;
}
+ public bool ShowFullSpace
+ {
+ get;
+ set;
+ }
+
+ public bool ShowHalfSpace
+ {
+ get;
+ set;
+ }
+
+ public bool ShowTab
+ {
+ get;
+ set;
+ }
+
+ public bool ShowLineBreak
+ {
+ get;
+ set;
+ }
+
public event ChangedRenderResourceEventHandler ChangedRenderResource;
public event EventHandler ChangedRightToLeft;
{
get
{
- return this.render.ShowFullSpace;
+ return this.Document.ShowFullSpace;
}
set
{
- this.render.ShowFullSpace = value;
+ this.Document.ShowFullSpace = value;
}
}
{
get
{
- return this.render.ShowHalfSpace;
+ return this.Document.ShowHalfSpace;
}
set
{
- this.render.ShowHalfSpace = value;
+ this.Document.ShowHalfSpace = value;
}
}
{
get
{
- return this.render.ShowTab;
+ return this.Document.ShowTab;
}
set
{
- this.render.ShowTab = value;
+ this.Document.ShowTab = value;
}
}
{
get
{
- return this.render.ShowLineBreak;
+ return this.Document.ShowLineBreak;
}
set
{
- this.render.ShowLineBreak = value;
+ this.Document.ShowLineBreak = value;
}
}
set { this.sf.SetTabStops(0,new float[]{value});}
}
+ public bool ShowFullSpace
+ {
+ get;
+ set;
+ }
+
+ public bool ShowHalfSpace
+ {
+ get;
+ set;
+ }
+
+ public bool ShowTab
+ {
+ get;
+ set;
+ }
+
+ public bool ShowLineBreak
+ {
+ get;
+ set;
+ }
}
}