public Frame(IDocument document, string stylename, string drawName, string graphicfile)
{
this.Document = document;
this.NewXmlNode();
this.InitStandards();
this.StyleName = stylename;
// this.AnchorType = "paragraph";
this.DrawName = drawName;
this.GraphicSourcePath = graphicfile;
this._graphicIdentifier = Guid.NewGuid();
this._realgraphicname = this._graphicIdentifier.ToString()
+ this.LoadImageFromFile(graphicfile);
Graphic graphic = new Graphic(this.Document, this, this._realgraphicname);
graphic.GraphicRealPath = this.GraphicSourcePath;
this.Content.Add(graphic);
this.Style = (IStyle)new FrameStyle(this.Document, stylename);
this.Document.Styles.Add(this.Style);
}