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("<