From 8471cfb899f45bac85498171e32ff7c1b942b20e Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 6 Aug 2019 20:11:50 +0000 Subject: [PATCH] B2019-108 Improved library for Word Content Import Added Select Method to Range Added [] to Paragraphs Added ConvertToInlineShape method to Shape Added ScaleHeight property to Shape Added ScaleWidth property to Shape --- PROMS/LBWordLibrary/LBComObject.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/PROMS/LBWordLibrary/LBComObject.cs b/PROMS/LBWordLibrary/LBComObject.cs index 4b4f7688..26896f06 100644 --- a/PROMS/LBWordLibrary/LBComObject.cs +++ b/PROMS/LBWordLibrary/LBComObject.cs @@ -571,6 +571,10 @@ namespace LBWordLibrary { return new LBRange(InvokeMethod("GoTo", What, Which, Count, Name)); } + public LBRange Select() + { + return new LBRange(InvokeMethod("Select")); + } } public partial class LBParagraphFormatClass : LBComObject { @@ -800,6 +804,14 @@ namespace LBWordLibrary } public partial class LBParagraphs : LBComObjectList /* Collection */ { + // C2019-021 RHM 5/15/2019 Added newe methods and properties for Import Word Content + public LBParagraph this[int item] + { + get // Get a Cell from a List + { + return new LBParagraph(base[item]); + } + } public LBParagraphs(Object item) { Item = item; @@ -1319,6 +1331,10 @@ namespace LBWordLibrary { public LBShape() { } public LBShape(Object item) : base(item) { } + public void ConvertToInlineShape() + { + InvokeMethod("ConvertToInlineShape"); + } public float Height { get { return (GetProperty("Height") as float? ?? 0); } @@ -1329,6 +1345,16 @@ namespace LBWordLibrary get { return (GetProperty("Width") as float? ?? 0); } set { SetProperty("Width", value); } } + //public float ScaleHeight + //{ + // get { return (GetProperty("ScaleHeight") as float? ?? 0); } + // set { SetProperty("ScaleHeight", value); } + //} + //public float ScaleWidth + //{ + // get { return (GetProperty("ScaleWidth") as float? ?? 0); } + // set { SetProperty("ScaleWidth", value); } + //} public LBRange Anchor { get { return new LBRange(GetProperty("Anchor")); }