From 262a8c3ad385a77d864f96bce04d547ed7c847d1 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 23 Apr 2013 19:00:33 +0000 Subject: [PATCH] =?UTF-8?q?Added=20underline=20to=20the=20LBFontClass=20Ad?= =?UTF-8?q?ded=20logic=20to=20support=20using=20underbars=20to=20turn=20un?= =?UTF-8?q?derlining=20on/off=20=E2=80=93=20only=20implemented=20in=20X/Y?= =?UTF-8?q?=20Plot=20RO=E2=80=99s=20for=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/LBWordLibrary/LBComObject.cs | 26 +++++++++++++ .../Extension/DocumentExt.cs | 38 ++++++++++++++++++- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/PROMS/LBWordLibrary/LBComObject.cs b/PROMS/LBWordLibrary/LBComObject.cs index ff797914..01b25dc6 100644 --- a/PROMS/LBWordLibrary/LBComObject.cs +++ b/PROMS/LBWordLibrary/LBComObject.cs @@ -583,6 +583,11 @@ namespace LBWordLibrary get { return (GetProperty("Name").ToString()); } set { SetProperty("Name", value); } } + public LBWdUnderline Underline + { + get { return (LBWdUnderline)GetProperty("Underline"); } + set { SetProperty("Underline", value); } + } } public enum LBWdInformation { @@ -1251,4 +1256,25 @@ namespace LBWordLibrary wdRelativeVerticalPositionInnerMarginArea = 6, wdRelativeVerticalPositionOuterMarginArea = 7 } + public enum LBWdUnderline + { + wdUnderlineNone = 0, + wdUnderlineSingle = 1, + wdUnderlineWords = 2, + wdUnderlineDouble = 3, + wdUnderlineDotted = 4, + wdUnderlineThick = 6, + wdUnderlineDash = 7, + wdUnderlineDotDash = 9, + wdUnderlineDotDotDash = 10, + wdUnderlineWavy = 11, + wdUnderlineDottedHeavy = 20, + wdUnderlineDashHeavy = 23, + wdUnderlineDotDashHeavy = 25, + wdUnderlineDotDotDashHeavy = 26, + wdUnderlineWavyHeavy = 27, + wdUnderlineDashLong = 39, + wdUnderlineWavyDouble = 43, + wdUnderlineDashLongHeavy = 55 + } } diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index ce768df8..82eb1476 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -723,10 +723,9 @@ namespace VEPROMS.CSLA.Library try { val = val.Replace("`", "\xB0"); - //sel.Text = ""; // An X/Y Plot RO type might have text preceding the Plot Commands int pstart = val.IndexOf("<