public ListGroup() { this.myOrientation = System.Windows.Forms.Orientation.Vertical; this.mySpacing = 0f; this.myAlignment = 2; this.myLinePenInfo = DiagramGraph.GetPenInfo(null); this.myBorderPenInfo = DiagramGraph.GetPenInfo(null); this.myBrushInfo = DiagramGraph.GetBrushInfo(null); this.myPath = null; this.myCorner = new SizeF(0f, 0f); this.myTopLeftMargin = new SizeF(2f, 2f); this.myBottomRightMargin = new SizeF(2f, 2f); base.InternalFlags &= -17; }
public static float GetPenWidth(System.Drawing.Pen pen, DiagramView view) { if (pen == null) { return(0f); } GoPenInfo info1 = DiagramGraph.GetPenInfo(pen); float single1 = info1.Width; if (((single1 == 0f) && (view != null)) && (view.DocScale > 0f)) { return(1f / view.DocScale); } return(single1); }
protected DiagramGraph() { this.myPenInfo = DiagramGraph.GetPenInfo(DiagramGraph.Pens_Black); this.myBrushInfo = DiagramGraph.GetBrushInfo(null); this.myPath = null; }