コード例 #1
0
 internal LengthValueBox(LayoutMeasure measure, LengthType type, Vector p1, Vector p2) : base(measure)
 {
     Type           = type;
     P1             = p1;
     P2             = p2;
     TargetPosition = (p1 + p2) / 2;
 }
コード例 #2
0
 internal MeasureValueBox(LayoutMeasure measure)
 {
     SourceMeasure  = measure;
     Visible        = true;
     IsDirty        = true;
     LocalOffset    = Vector.Zero;
     OriginalOffset = Vector.Zero;
 }
コード例 #3
0
ファイル: XOrderService.cs プロジェクト: fhis/order.client
        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);
        }
コード例 #4
0
 internal AngleValueBox(LayoutMeasure measure, Angle value) : base(measure)
 {
     Value       = value;
     DisplayUnit = AngleUnit.Degrees;
 }