internal LengthValueBox(LayoutMeasure measure, LengthType type, Vector p1, Vector p2) : base(measure) { Type = type; P1 = p1; P2 = p2; TargetPosition = (p1 + p2) / 2; }
internal MeasureValueBox(LayoutMeasure measure) { SourceMeasure = measure; Visible = true; IsDirty = true; LocalOffset = Vector.Zero; OriginalOffset = Vector.Zero; }
private Size calculateSizeByLength() { var sb = new StringBuilder(); Size s; sb.Append('#', prefLength); using (var g = new Control().CreateGraphics()) { int temp_Width = LayoutMeasure.MeasureDisplayString(g, sb.ToString(), Font).ToSize().Width; int temp_Height = Font.Height; s = new Size(temp_Width, temp_Height); } return(s); }
internal AngleValueBox(LayoutMeasure measure, Angle value) : base(measure) { Value = value; DisplayUnit = AngleUnit.Degrees; }