C# Class Aspose.Plugins.AsposeVSOpenXML.Program

Afficher le fichier Open project: aspose-words/Aspose.Words-for-.NET

Méthodes publiques

Méthode Description
AddCommentOnFirstParagraph ( string fileName, string author, string initials, string comment ) : void
AddStylesPartToPackage ( WordprocessingDocument doc ) : StyleDefinitionsPart
ChangeHeader ( String documentPath ) : void
ChangeHeader ( string documentPath ) : void
ChangeTextInCell ( string filepath, string txt ) : void
ConvertDOCMtoDOCX ( string oldfileName, string newfileName ) : void
CreateAndAddParagraphStyle ( StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, string aliases = "" ) : void
CreateWordprocessingDocument ( string filepath ) : void
DeleteComments ( string fileName, string author = "" ) : void
ExtractComments ( Document doc ) : void
FindBoundingBoxAroundNode ( Bitmap originalBitmap ) : Rectangle

Finds the minimum bounding box around non-transparent pixels in a Bitmap.

FindShapeSizes ( Shape shape ) : void
GenerateFooterPartContent ( FooterPart part ) : void
GenerateHeaderPartContent ( HeaderPart part ) : void
GetCommentsFromDocument ( string fileName ) : void
InsertAPicture ( string document, string fileName ) : void
OpenWordprocessingDocumentReadonly ( string filepath ) : void
RemoveComments ( string File, string authorName ) : void
RemoveHeadersAndFooters ( string filename ) : void
RenderCellToImage ( string dataDir, Document doc ) : void
RenderDrawingMLToDisk ( string dataDir, Shape drawingML ) : void
RenderNode ( Node node, string filePath, ImageSaveOptions imageOptions ) : void

Renders any node in a document to the path specified using the image save options.

RenderParagraphToImage ( string dataDir, Document doc ) : void
RenderRowToImage ( string dataDir, Document doc ) : void
RenderShapeToDisk ( string dataDir, Shape shape ) : void
RenderShapeToGraphics ( string dataDir, Shape shape ) : void
RenderShapeToStream ( string dataDir, Shape shape ) : void
SearchAndReplace ( string document ) : void
WDDeleteHiddenText ( string docName ) : void

Private Methods

Méthode Description
AddImageToBody ( WordprocessingDocument wordDoc, string relationshipId ) : void
AddTable ( string fileName, string data ) : void
IsSectionProps ( ParagraphProperties pPr ) : bool
Main ( string args ) : void
OpenAndAddTextToWordDocument ( string filepath, string txt ) : void
OpenAndAddToWordprocessingStream ( Stream stream, string txt ) : void
RemovePageBreaks ( Document doc ) : void
RemovePageBreaks ( string filename ) : void
RemoveSectionBreaks ( Document doc ) : void
RemoveSectionBreaks ( string filename ) : void
ReplaceOneWordWithAnother ( Document doc ) : void
ReplaceTwoSimilarWords ( Document doc ) : void

Method Details

AddCommentOnFirstParagraph() public static méthode

public static AddCommentOnFirstParagraph ( string fileName, string author, string initials, string comment ) : void
fileName string
author string
initials string
comment string
Résultat void

AddStylesPartToPackage() public static méthode

public static AddStylesPartToPackage ( WordprocessingDocument doc ) : StyleDefinitionsPart
doc WordprocessingDocument
Résultat StyleDefinitionsPart

ChangeHeader() public static méthode

public static ChangeHeader ( String documentPath ) : void
documentPath String
Résultat void

ChangeHeader() public static méthode

public static ChangeHeader ( string documentPath ) : void
documentPath string
Résultat void

ChangeTextInCell() public static méthode

public static ChangeTextInCell ( string filepath, string txt ) : void
filepath string
txt string
Résultat void

ConvertDOCMtoDOCX() public static méthode

public static ConvertDOCMtoDOCX ( string oldfileName, string newfileName ) : void
oldfileName string
newfileName string
Résultat void

CreateAndAddParagraphStyle() public static méthode

public static CreateAndAddParagraphStyle ( StyleDefinitionsPart styleDefinitionsPart, string styleid, string stylename, string aliases = "" ) : void
styleDefinitionsPart StyleDefinitionsPart
styleid string
stylename string
aliases string
Résultat void

CreateWordprocessingDocument() public static méthode

public static CreateWordprocessingDocument ( string filepath ) : void
filepath string
Résultat void

DeleteComments() public static méthode

public static DeleteComments ( string fileName, string author = "" ) : void
fileName string
author string
Résultat void

ExtractComments() public static méthode

public static ExtractComments ( Document doc ) : void
doc Document
Résultat void

FindBoundingBoxAroundNode() public static méthode

Finds the minimum bounding box around non-transparent pixels in a Bitmap.
public static FindBoundingBoxAroundNode ( Bitmap originalBitmap ) : Rectangle
originalBitmap Bitmap
Résultat Rectangle

FindShapeSizes() public static méthode

public static FindShapeSizes ( Shape shape ) : void
shape Shape
Résultat void

GenerateFooterPartContent() public static méthode

public static GenerateFooterPartContent ( FooterPart part ) : void
part FooterPart
Résultat void

GenerateHeaderPartContent() public static méthode

public static GenerateHeaderPartContent ( HeaderPart part ) : void
part HeaderPart
Résultat void

GetCommentsFromDocument() public static méthode

public static GetCommentsFromDocument ( string fileName ) : void
fileName string
Résultat void

InsertAPicture() public static méthode

public static InsertAPicture ( string document, string fileName ) : void
document string
fileName string
Résultat void

OpenWordprocessingDocumentReadonly() public static méthode

public static OpenWordprocessingDocumentReadonly ( string filepath ) : void
filepath string
Résultat void

RemoveComments() public static méthode

public static RemoveComments ( string File, string authorName ) : void
File string
authorName string
Résultat void

RemoveHeadersAndFooters() public static méthode

public static RemoveHeadersAndFooters ( string filename ) : void
filename string
Résultat void

RenderCellToImage() public static méthode

public static RenderCellToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
Résultat void

RenderDrawingMLToDisk() public static méthode

public static RenderDrawingMLToDisk ( string dataDir, Shape drawingML ) : void
dataDir string
drawingML Shape
Résultat void

RenderNode() public static méthode

Renders any node in a document to the path specified using the image save options.
public static RenderNode ( Node node, string filePath, ImageSaveOptions imageOptions ) : void
node Node The node to render.
filePath string
imageOptions ImageSaveOptions The image options to use during rendering. This can be null.
Résultat void

RenderParagraphToImage() public static méthode

public static RenderParagraphToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
Résultat void

RenderRowToImage() public static méthode

public static RenderRowToImage ( string dataDir, Document doc ) : void
dataDir string
doc Document
Résultat void

RenderShapeToDisk() public static méthode

public static RenderShapeToDisk ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
Résultat void

RenderShapeToGraphics() public static méthode

public static RenderShapeToGraphics ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
Résultat void

RenderShapeToStream() public static méthode

public static RenderShapeToStream ( string dataDir, Shape shape ) : void
dataDir string
shape Shape
Résultat void

SearchAndReplace() public static méthode

public static SearchAndReplace ( string document ) : void
document string
Résultat void

WDDeleteHiddenText() public static méthode

public static WDDeleteHiddenText ( string docName ) : void
docName string
Résultat void