New Properties

This commit is contained in:
Rich 2010-03-25 19:26:59 +00:00
parent b1d4c004d3
commit 8dba8a3767

View File

@ -299,6 +299,10 @@ namespace LBWordLibrary
{
get { return new LBWindow(GetProperty("ActiveWindow")); }
}
public LBPageSetup PageSetup
{
get { return new LBPageSetup(GetProperty("PageSetup")); }
}
public void SaveAs2000()
{
InvokeMethod("SaveAs2000", Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value);
@ -374,6 +378,21 @@ namespace LBWordLibrary
{
get { return new LBParagraphs(GetProperty("Paragraphs")); }
}
public int End
{
get { return (GetProperty("End") as int? ?? 0); }
set { SetProperty("End", value); }
}
public int Start
{
get { return (GetProperty("Start") as int? ?? 0); }
set { SetProperty("Start", value); }
}
public String Text
{
get { return (GetProperty("Text").ToString()); }
set { SetProperty("Text", value); }
}
public LBRange GoTo()
{
return new LBRange(InvokeMethod("GoTo", Missing.Value, Missing.Value, Missing.Value, Missing.Value));
@ -617,6 +636,61 @@ namespace LBWordLibrary
return new LBShape(InvokeMethod("AddPicture", FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height, Anchor));
}
}
public partial class LBPageSetup : LBComObject
{
public LBPageSetup() { }
public LBPageSetup(Object item) : base(item) { }
public float BottomMargin
{
get { return (GetProperty("BottomMargin") as float? ?? 0); }
set { SetProperty("BottomMargin", value); }
}
public float LeftMargin
{
get { return (GetProperty("LeftMargin") as float? ?? 0); }
set { SetProperty("LeftMargin", value); }
}
public float RightMargin
{
get { return (GetProperty("RightMargin") as float? ?? 0); }
set { SetProperty("RightMargin", value); }
}
public float TopMargin
{
get { return (GetProperty("TopMargin") as float? ?? 0); }
set { SetProperty("TopMargin", value); }
}
public LBWdOrientation Orientation
{
get { return (LBWdOrientation)GetProperty("Orientation"); }
set { SetProperty("Orientation", value); }
}
public float PageHeight
{
get { return (GetProperty("PageHeight") as float? ?? 0); }
set { SetProperty("PageHeight", value); }
}
public float PageWidth
{
get { return (GetProperty("PageWidth") as float? ?? 0); }
set { SetProperty("PageWidth", value); }
}
public LBWdPaperSize PaperSize
{
get { return (LBWdPaperSize)GetProperty("PaperSize"); }
set { SetProperty("PaperSize", value); }
}
public float LinesPage
{
get { return (GetProperty("LinesPage") as float? ?? 0); }
set { SetProperty("LinesPage", value); }
}
public float CharsLine
{
get { return (GetProperty("CharsLine") as float? ?? 0); }
set { SetProperty("CharsLine", value); }
}
}
public enum LBWdExportFormat
{
wdExportFormatPDF = 17,
@ -829,6 +903,56 @@ namespace LBWordLibrary
set { SetProperty("LockAspectRatio", value); }
}
}
public enum LBWdOrientation
{
wdOrientPortrait = 0,
wdOrientLandscape = 1
}
public enum LBWdPaperSize
{
wdPaper10x14 = 0,
wdPaper11x17 = 1,
wdPaperLetter = 2,
wdPaperLetterSmall = 3,
wdPaperLegal = 4,
wdPaperExecutive = 5,
wdPaperA3 = 6,
wdPaperA4 = 7,
wdPaperA4Small = 8,
wdPaperA5 = 9,
wdPaperB4 = 10,
wdPaperB5 = 11,
wdPaperCSheet = 12,
wdPaperDSheet = 13,
wdPaperESheet = 14,
wdPaperFanfoldLegalGerman = 15,
wdPaperFanfoldStdGerman = 16,
wdPaperFanfoldUS = 17,
wdPaperFolio = 18,
wdPaperLedger = 19,
wdPaperNote = 20,
wdPaperQuarto = 21,
wdPaperStatement = 22,
wdPaperTabloid = 23,
wdPaperEnvelope9 = 24,
wdPaperEnvelope10 = 25,
wdPaperEnvelope11 = 26,
wdPaperEnvelope12 = 27,
wdPaperEnvelope14 = 28,
wdPaperEnvelopeB4 = 29,
wdPaperEnvelopeB5 = 30,
wdPaperEnvelopeB6 = 31,
wdPaperEnvelopeC3 = 32,
wdPaperEnvelopeC4 = 33,
wdPaperEnvelopeC5 = 34,
wdPaperEnvelopeC6 = 35,
wdPaperEnvelopeC65 = 36,
wdPaperEnvelopeDL = 37,
wdPaperEnvelopeItaly = 38,
wdPaperEnvelopeMonarch = 39,
wdPaperEnvelopePersonal = 40,
wdPaperCustom = 41
}
public partial class LBPages : LBComObjectList<LBPages, LBPage> /* Collection */
{
public LBPages(Object item)
@ -1026,4 +1150,9 @@ namespace LBWordLibrary
wdGoToProofreadingError = 15,
wdGoToBookmark = -1
}
public partial class LBPictureFormat : LBComObject
{
public LBPictureFormat() { }
public LBPictureFormat(Object item) : base(item) { }
}
}