reparc.cs

来自「在网页上显示pdf文件的类库,可以将pdf文件显示的网页上面」· CS 代码 · 共 722 行 · 第 1/4 页

CS
722
字号
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rRadius">Radius of the circle in points (1/72 inch)</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the first side of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the rStartAngle parameter to the second side of the pie section</param>
    public RepPie(PenProp penProp, BrushProp brushProp, Double rRadius, Double rStartAngle, Double rSweepAngle)
      : this(penProp, brushProp, rRadius * 2.0, rRadius * 2.0, rStartAngle, rSweepAngle) {
     }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a pie section with a border line defined by a circle specified by the radius in points (1/72 inch).</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The pie shape represents a portion of a circle that is defined by the parameter <paramref name="rRadius"/>.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="rRadius">Radius of the circle in points (1/72 inch)</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the first side of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the rStartAngle parameter to the second side of the pie section</param>
    public RepPie(PenProp penProp, Double rRadius, Double rStartAngle, Double rSweepAngle)
      : this(penProp, null, rRadius * 2.0, rRadius * 2.0, rStartAngle, rSweepAngle) {
    }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a filled pie section defined by a circle specified by the radius in points (1/72 inch).</summary>
    /// <remarks>
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of a circle that is defined by the parameter <paramref name="rRadius"/>.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rRadius">Radius of the circle in points (1/72 inch)</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the first side of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the rStartAngle parameter to the second side of the pie section</param>
    public RepPie(BrushProp brushProp, Double rRadius, Double rStartAngle, Double rSweepAngle)
      : this(null, brushProp, rRadius * 2.0, rRadius * 2.0, rStartAngle, rSweepAngle) {
    }
  }
  #endregion

  //------------------------------------------------------------------------------------------04.03.2004
  #region RepPieMM
  //----------------------------------------------------------------------------------------------------
  
  /// <summary>Report Pie Object (metric version)</summary>
  public class RepPieMM : RepPie {
    //------------------------------------------------------------------------------------------04.03.2004
    /// <overloads>
    /// <summary>Creates a pie shape defined by an ellipse or a circle and two radial lines (metric version).</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of an ellipse or circle.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// </overloads>
    /// 
    /// <summary>Creates a filled pie section with a border line defined by an ellipse specified by the bounding
    /// rectangle in millimeters.</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of an ellipse that is defined by the bounding rectangle described by the
    /// <paramref name="rWidthMM"/> and <paramref name="rHeightMM"/> parameters.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rWidthMM">Width in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rHeightMM">Height in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(PenProp penProp, BrushProp brushProp, Double rWidthMM, Double rHeightMM, Double rStartAngle, Double rSweepAngle)
      : base(penProp, brushProp, RT.rPointFromMM(rWidthMM), RT.rPointFromMM(rHeightMM), rStartAngle, rSweepAngle)
    {}

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a pie section with a border line defined by an ellipse specified by the bounding rectangle in millimeters.</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The pie shape represents a portion of an ellipse that is defined by the bounding rectangle described by the
    /// <paramref name="rWidthMM"/> and <paramref name="rHeightMM"/> parameters.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="rWidthMM">Width in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rHeightMM">Height in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(PenProp penProp, Double rWidthMM, Double rHeightMM, Double rStartAngle, Double rSweepAngle)
      : this(penProp, null, rWidthMM, rHeightMM, rStartAngle, rSweepAngle) {
    }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a filled pie section defined by an ellipse specified by the bounding rectangle in millimeters.</summary>
    /// <remarks>
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of an ellipse that is defined by the bounding rectangle described by the
    /// <paramref name="rWidthMM"/> and <paramref name="rHeightMM"/> parameters.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rWidthMM">Width in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rHeightMM">Height in millimeters of the bounding rectangle that defines the ellipse from which the pie section comes</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(BrushProp brushProp, Double rWidthMM, Double rHeightMM, Double rStartAngle, Double rSweepAngle)
      : this(null, brushProp, rWidthMM, rHeightMM, rStartAngle, rSweepAngle) {
    }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a filled pie section with a border line defined by a circle specified by the radius in millimeters.</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of an ellipse that is defined by the parameter <paramref name="rRadiusMM"/>.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rRadiusMM">Radius of the circle in millimeters</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(PenProp penProp, BrushProp brushProp, Double rRadiusMM, Double rStartAngle, Double rSweepAngle)
      : this(penProp, brushProp, rRadiusMM * 2.0, rRadiusMM * 2.0, rStartAngle, rSweepAngle) {
    }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a pie section with a border line defined by a circle specified by the radius in millimeters.</summary>
    /// <remarks>
    /// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
    /// The pie shape represents a portion of an ellipse that is defined by the parameter <paramref name="rRadiusMM"/>.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="penProp">Pen properties of the border line</param>
    /// <param name="rRadiusMM">Radius of the circle in millimeters</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(PenProp penProp, Double rRadiusMM, Double rStartAngle, Double rSweepAngle)
      : this(penProp, null, rRadiusMM * 2.0, rRadiusMM * 2.0, rStartAngle, rSweepAngle) {
    }

    //------------------------------------------------------------------------------------------04.03.2004
    /// <summary>Creates a filled pie section defined by a circle specified by the radius in millimeters.</summary>
    /// <remarks>
    /// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
    /// The pie shape represents a portion of an ellipse that is defined by the parameter <paramref name="rRadiusMM"/>.
    /// The parameters <paramref name="rStartAngle"/> and <paramref name="rSweepAngle"/> define the start and
    /// end point of the radial lines.
    /// </remarks>
    /// <param name="brushProp">Brush properties of the fill</param>
    /// <param name="rRadiusMM">Radius of the circle in millimeters</param>
    /// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the pie section</param>
    /// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
    /// the end point of the pie section</param>
    public RepPieMM(BrushProp brushProp, Double rRadiusMM, Double rStartAngle, Double rSweepAngle)
      : this(null, brushProp, rRadiusMM * 2.0, rRadiusMM * 2.0, rStartAngle, rSweepAngle) {
    }
  }
  #endregion
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?