I am using powershell to use migradoc and pdfsharp. I have a problem in figuring out what namespaces are being used in the examples. For example:
Code:
static Document CreateDocument()
{
// Create a new MigraDoc document
Document document = new Document();
// Add a section to the document
Section section = document.AddSection();
// Add a paragraph to the section
Paragraph paragraph = section.AddParagraph();
paragraph.Format.Font.Color = Color.FromCmyk(100, 30, 20, 50);
// Add some text to the paragraph
paragraph.AddFormattedText("Hello, World!", TextFormat.Bold);
return document;
}
This code is posted at this url:
http://www.pdfsharp.net/wiki/MigraDocHe ... ample.ashxBut it does not show which namespaces are being used. If I could see the namespaces (using clause) i can figure out how to use the library with powershell. Is it possible that you can direct me on how to find out what namespaces are being used in the examples?
Edit:
Here is I created a document object I created in powershell:
Code:
$document = new-object MigraDoc.DocumentObjectModel.Document
The code above I had to guess the namespace layout and got lucky. So i was able to successfully create a new document (not tested) but cannot figure out the other objects in the examples. When going through the examples how can I know what namesspaces are used.