[]
Represents a Word/RTF document.
[Obsolete("This library is obsolete. Please use C1.Win.Pdf (part of C1.Pdf for .NET Standard) instead.")]
public class C1WordDocument : IRtfContent, IEnumerable
Name | Description |
---|---|
C1WordDocument() | Create new ComponentOne Word/RTF document. |
C1WordDocument(PaperKind) | Create new ComponentOne Word/RTF document with known paper kind. |
Name | Description |
---|---|
BottomMargin | Gets or sets a bottom margin of this document. |
ClientRectangle | Gets client rectangle of this document. |
Count | Gets count of objects of a main section of this document. |
Creator | Gets or sets creator (generator) name of this document. |
Current | Gets current object of this document. |
CurrentAlignment | Gets or sets current horizontal alignment of this document. |
CurrentCanvas | Gets or sets current drawing canvas of this document. |
CurrentColor | Gets current color of this document. |
CurrentCulture | Gets or sets current culture of this document. |
CurrentFont | Gets curent font of this document. |
CurrentPageIndex | Gets current page number for this document. |
CurrentPen | Gets current pen of this document. |
CurrentSection | Gets current section of this document. |
CurrentShape | Gets curent shape of this document. |
FitShapesToText | Gets or sets a value specifying whether will the fit the shape by size for the text value on all drawing canvases of this document. |
Hyperlink | Gets or sets current hyperlink for all adds objects for this document. |
Info | Gets information interface for this document. |
Landscape | Gets or sets landscape flag of a page for this document. |
LeftIndent | Gets or sets a current left indent of this document. |
LeftMargin | Gets or sets a left margin of this document. |
ListLevelIndent | Gets or sets a current indent for one level of a list of this document. |
MainSection | Gets the main section of this document. |
PageSize | Gets or sets a page size for this document. |
RightIndent | Gets or sets a current right indent of this document. |
RightMargin | Gets or sets a right margin of this document. |
ShapesWord2007Compatible | Gets or sets a value indicating whether shapes are rendered in a format backwards compatible with Word 2007. By default (if false), Word 2010 shapes format is used. |
TopMargin | Gets or sets a top margin of this document. |
Version | Gets or sets Word/RTF version number for this document. |
Name | Description |
---|---|
Add(RtfObject) | Add Word/RTF object for this document. |
AddBookmark(string) | Add bookmark (start and end) into this document in next position. |
AddBookmarkEnd(string) | Add end bookmark into this document in next position. |
AddBookmarkStart(string) | Add start bookmark into this document in next position. |
AddCanvas(Rect) | Add drawing canvas into this document (for current section) in next position. |
AddLink(string) | Add hyperlink into this document in next position. |
AddLink(string, IRtfContent) | Add hyperlink into this document in next position. |
AddListTexts(RtfListType, params KeyValuePair<int, string>[]) | Adds tests in a list. |
AddParagraph(string) | Add paragraph into this document in next position. |
AddParagraph(string, Font) | Add paragraph into this document in next position. |
AddParagraph(string, Font, Color) | Add paragraph into this document in next position. |
AddParagraph(string, Font, Color, RtfHorizontalAlignment) | Add paragraph into this document in next position. |
AddPicture(C1Bitmap) | Add (draw) image/bitmap with content alignment. |
AddPicture(C1Bitmap, ShapeWrapType, ZIndexType) | Add image/bitmap with shape wrap and z-index. |
AddPicture(C1Bitmap, RtfHorizontalAlignment) | Add (draw) image/bitmap with content alignment. |
AddPicture(WriteableBitmap) | Add (draw) image/bitmap with content alignment. |
AddPicture(WriteableBitmap, ShapeWrapType, ZIndexType) | Add image/bitmap with shape wrap and z-index. |
AddPicture(WriteableBitmap, RtfHorizontalAlignment) | Add (draw) image/bitmap with content alignment. |
AddShape(DrawingShape) | Add Word/RTF object for this document. |
Clear() | Clear this document, reset content. |
ColumnBreak() | Add new column to this document. |
DrawArc(Pen, Rect, float, float) | Draw arc from this document. |
DrawBeziers(Pen, Point[]) | Draw Bezier curve from this document. |
DrawElement(FrameworkElement, Rect) | Draws a FrameworkElement into the document at a specified position. |
DrawElement(FrameworkElement, Rect, ContentAlignment, Stretch) | Draws the specified WriteableBitmap object at the specified location,
adjusting the image size as specified by the |
DrawElement(FrameworkElement, Rect, Rect) | Draws a FrameworkElement into the document at a specified position. |
DrawEllipse(Pen, double, double, double, double) | Draw ellipse from this document. |
DrawEllipse(Pen, Rect) | Draw ellipse from this document. |
DrawImage(C1Bitmap, Rect) | Draw image/bitmap with content alignment. |
DrawImage(C1Bitmap, Rect, Rect) | Draw image/bitmap with content alignment. |
DrawImage(WriteableBitmap, Rect) | Draw image/bitmap with content alignment. |
DrawImage(WriteableBitmap, Rect, Rect) | Draw image/bitmap with content alignment. |
DrawLine(Pen, double, double, double, double) | Draw line from this document. |
DrawLine(Pen, Point, Point) | Draw line from this document. |
DrawParagraph(Rect, RtfParagraph, bool) | Draw paragraph into this document in next position. |
DrawPath(Pen, Point[], byte[], bool) | Draws a path defined by points and types. |
DrawPie(Pen, Rect, float, float) | Draw pie from this document. |
DrawPolygon(Pen, Point[]) | Draw poligon from this document. |
DrawPolyline(Pen, Point[]) | Draw lines from this document. |
DrawRectangle(Pen, double, double, double, double) | Draw rectangle from this document. |
DrawRectangle(Pen, Rect) | Draw rectangle from this document. |
DrawRectangle(Pen, Rect, Size) | Draw round rectangle from this document. |
DrawString(string, Font, Color, Rect) | Draw text string into this document in next position. |
DrawString(string, Font, Color, Rect, StringFormat) | Draw text string into this document in next position. |
DrawString(string, Rect) | Draw text string into this document in next position. |
DrawString(TextBlock, Rect, bool) | Draws a string into the specified rectangle. |
FillBeziers(Color, Point[]) | Fill Bezier curve from this document. |
FillEllipse(Color, double, double, double, double) | Fill ellipse from this document. |
FillEllipse(Color, Rect) | Fill ellipse from this document. |
FillPath(Color, Point[], byte[], bool) | Fills a path defined by points and types. |
FillPie(Color, Rect, float, float) | Fill pie from this document. |
FillPolygon(Color, Point[]) | Fill polygon from this document. |
FillRectangle(Color, double, double, double, double) | Fill rectangle from this document. |
FillRectangle(Color, Rect) | Fill rectangle from this document. |
FillRectangle(Color, Rect, Size) | Fill round rectangle from this document. |
GetEnumerator() | Exposes the enumerator, which supports a simple iteration over a non-generic collection. |
GetParagraph(Font) | Get paragraph with the empty text and string format for this document. |
GetParagraph(string) | Get paragraph for the text for this document. |
GetParagraph(string, Font) | Get paragraph for the text for this document. |
GetParagraph(string, Font, StringFormat) | Get paragraph for the text and string format for this document. |
GetParagraph(string, Font, StringFormat, float) | Get paragraph for the text and string format for this document. |
GetParagraph(string, StringFormat) | Get paragraph for the text and string format for this document. |
GetParagraph(string, StringFormat, float) | Get paragraph for the text and string format for this document. |
LineBreak() | Add new line to this document. |
Load(string) | Load document from the file with file name. |
LoadFromOpenXml(Stream) | Load document from the readable Open XML stream. |
LoadFromOpenXml(string) | Load document from the file in Open XML format. |
LoadFromRtf(Stream) | Load document from the readable RTF stream. |
LoadFromText(Stream) | Load document from the readable text stream. |
MeasureExpand(string, Font, double) | Measure expand value (spacing between characters) for the text of this document. |
MeasureFontSize(string, Font, double) | Measure font size for the text of this document. |
MeasureString(string, Font) | Measure string for this document. |
MeasureString(string, Font, double) | Measure string for the RTF document. |
MeasureString(string, Font, double, StringFormat) | Measure string for this document. |
Merging(C1WordDocument) | The merging of this document and other. |
Merging(C1WordDocument, IRtfContent) | The merging of this document and other to content. |
OnDrawingElement(DrawingElementEventArgs) | Raises the DrawingElement event. |
PageBreak(bool) | Add new page to this document. |
ParseRtfText(string) | Parse a RTF text and added to this document content. |
ResetClipRect() | Restores the clipping area to the state before the last call to SetClipRect(Rect). |
Save(Stream, FileFormat) | Save this document to the stream. |
Save(string) | Save this document to the file with file name. |
SaveToText(Stream) | Save this document to a writable text stream. |
SetClipRect(Rect) | Sets a clipping area of this document. |
SetPageSettings(Size, Size) | Set current page settings from this document. |
ShapeFillOpacity(int) | Set opacity for current Word/RTF shape. |
ShapeHyperlink(string) | Set hyperlink source for current Word/RTF shape. |
ShapeRotation(float) | Set rotation for current Word/RTF shape. |
ToPixels(double) | Converts points to pixels. |
ToPixels(Rect) | Converts points to pixels. |
ToPixels(Size) | Converts points to pixels. |
ToPoints(double) | Converts pixels to points. |
ToPoints(Rect) | Converts pixels to points. |
ToPoints(Size) | Converts pixels to points. |
ToRtfText() | Gets a RTF text for this document content. |
Name | Description |
---|---|
DrawingElement | Occurs when the C1WordDocument is about to render a FrameworkElement. |
RtfPageAdded | The added page for Word/RTF document event. |