AODL.Document.Content.Draw.Frame.Frame C# (CSharp) Method

Frame() public method

Initializes a new instance of the Frame class.
public Frame ( IDocument document, string stylename, string drawName, string graphicfile ) : System
document IDocument The textdocument.
stylename string The stylename.
drawName string The draw name.
graphicfile string The graphicfile.
return System
		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);
		}

Same methods

Frame::Frame ( IDocument document, string stylename ) : System