Change Manager
This commit is contained in:
@@ -342,8 +342,12 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_FormatFont == null)
|
||||
{
|
||||
Font formatFont = MyItemInfo.GetItemFont().WindowsFont; // OrigDisplayText.TextFont.WindowsFont;
|
||||
if (MyItemInfo.IsTable || MyItemInfo.IsFigure)
|
||||
Font formatFont;
|
||||
if (MyItemInfo != null)
|
||||
formatFont = MyItemInfo.GetItemFont().WindowsFont; // OrigDisplayText.TextFont.WindowsFont;
|
||||
else
|
||||
formatFont = Font;
|
||||
if (MyItemInfo != null && (MyItemInfo.IsTable || MyItemInfo.IsFigure))
|
||||
_FormatFont = formatFont;
|
||||
else
|
||||
{
|
||||
@@ -357,9 +361,18 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
return _FormatFont;
|
||||
}
|
||||
set { _FormatFont = value; }
|
||||
}
|
||||
public void SetupRichText(string rtf, VE_Font vFont)
|
||||
{
|
||||
//FormatFont = vFont.WindowsFont;
|
||||
DisplayText vlnText = new DisplayText(rtf, vFont, true);
|
||||
AddRtfText(vlnText.StartText);
|
||||
ReadOnly = true;
|
||||
}
|
||||
public void RefreshDisplay()
|
||||
{
|
||||
if (Disposing) return;
|
||||
RefreshDisplay(ActiveMode);
|
||||
}
|
||||
// RefreshDisplay is used to update the rtb for an entire Item as defined by MyItemInfo.
|
||||
|
Reference in New Issue
Block a user