Added support for Visio

This commit is contained in:
Rich
2017-01-30 16:53:35 +00:00
parent bb9198aa4f
commit 8defa23e65
3 changed files with 159 additions and 58 deletions

View File

@@ -156,7 +156,10 @@ namespace Volian.Controls.Library
{
MyStepRTB.VwMode = MyStepPanel.VwMode;
Size sz = GetRtfRawSize(MyStepRTB.Rtf);
if (MyStepRTB.Rtf == null || MyStepRTB.Rtf == "" || !MyStepRTB.Rtf.ToUpper().Contains("OBJCLASS EQUATION")) // this is a new insert
if (MyStepRTB.Rtf == null || MyStepRTB.Rtf == ""
|| !(MyStepRTB.Rtf.ToUpper().Contains("OBJCLASS EQU")
|| MyStepRTB.Rtf.ToUpper().Contains("OBJCLASS VIS")) //Support Visio
) // this is a new insert
{
sz.Width = 50;
sz.Height = 50;