Class WordDocument
Inheritance
System.Object
WordDocument
Assembly: IronWord.dll
Syntax
public class WordDocument : Object, IElementContainer, ITextContainer, IDrawContainer
Constructors
WordDocument()
Declaration
WordDocument(ContentElement[])
Declaration
public WordDocument(params ContentElement[] children)
Parameters
WordDocument(String)
Declaration
public WordDocument(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Properties
Charts
Declaration
public List<Chart> Charts { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Chart> |
|
Images
Declaration
public List<Image> Images { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Image> |
|
MultiLevelTextLists
Declaration
public List<MultiLevelTextList> MultiLevelTextLists { get; }
Property Value
Paragraphs
Declaration
public List<Paragraph> Paragraphs { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Paragraph> |
|
Shapes
Declaration
public List<Shape> Shapes { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Shape> |
|
Tables
Declaration
public List<Table> Tables { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Table> |
|
Texts
Declaration
public List<Text> Texts { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<Text> |
|
Methods
AddChild(ContentElement[])
Declaration
public void AddChild(params ContentElement[] children)
Parameters
AddImage(AnyBitmap)
Declaration
public Image AddImage(AnyBitmap anyBitmap)
Parameters
Type |
Name |
Description |
IronSoftware.Drawing.AnyBitmap |
anyBitmap |
|
Returns
AddImage(Image)
Declaration
public Image AddImage(Image image)
Parameters
Type |
Name |
Description |
Image |
image |
|
Returns
AddImage(Stream)
Declaration
public Image AddImage(Stream imageStream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
imageStream |
|
Returns
AddImage(String)
Declaration
public Image AddImage(string imagePath)
Parameters
Type |
Name |
Description |
System.String |
imagePath |
|
Returns
AddMultiLevelTextList(MultiLevelTextList)
Declaration
public MultiLevelTextList AddMultiLevelTextList(MultiLevelTextList multiLevelTextList)
Parameters
Returns
AddParagraph(Paragraph)
Declaration
public Paragraph AddParagraph(Paragraph paragraph)
Parameters
Returns
AddSection()
Declaration
AddSection(DocumentSection)
Declaration
public void AddSection(DocumentSection documentSection)
Parameters
AddShape(Shape)
Declaration
public Shape AddShape(Shape shape)
Parameters
Type |
Name |
Description |
Shape |
shape |
|
Returns
AddTable(Table)
Declaration
public Table AddTable(Table table)
Parameters
Type |
Name |
Description |
Table |
table |
|
Returns
AddText(Text)
Declaration
public Text AddText(Text textRun)
Parameters
Type |
Name |
Description |
Text |
textRun |
|
Returns
AddText(String)
Declaration
public Text AddText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
LogObjectTree()
Declaration
public void LogObjectTree()
Save()
Declaration
Save(String)
Declaration
public void Save(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
SaveAs(String)
Declaration
public void SaveAs(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Implements