📄 reparc.cs
字号:
/// <summary>Creates an arc representing a portion of 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 arc 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 arc.
/// </remarks>
/// <param name="penProp">Pen properties of the arc</param>
/// <param name="rWidthMM">Width in millimeters of the bounding rectangle that defines the ellipse from which the arc comes</param>
/// <param name="rHeightMM">Height in millimeters of the bounding rectangle that defines the ellipse from which the arc comes</param>
/// <param name="rStartAngle">Angle in degrees measured clockwise from the x-axis to the start position of the arc</param>
/// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
/// the end point of the arc</param>
public RepArcMM(PenProp penProp, Double rWidthMM, Double rHeightMM, Double rStartAngle, Double rSweepAngle)
: base(penProp, RT.rPointFromMM(rWidthMM), RT.rPointFromMM(rHeightMM), rStartAngle, rSweepAngle) {
}
//------------------------------------------------------------------------------------------04.03.2004
/// <summary>Creates an arc representing a portion of 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 arc represents a portion of a circle 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 arc.
/// </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 arc</param>
/// <param name="rSweepAngle">Angle in degrees measured clockwise from the <paramref name="rStartAngle"/> parameter to
/// the end point of the arc</param>
public RepArcMM(PenProp penProp, Double rRadiusMM, Double rStartAngle, Double rSweepAngle)
: this(penProp, rRadiusMM * 2.0, rRadiusMM * 2.0, rStartAngle, rSweepAngle) {
}
}
#endregion
//------------------------------------------------------------------------------------------03.03.2004
#region RepCircle
//----------------------------------------------------------------------------------------------------
/// <summary>Report Circle Object</summary>
/// <remarks>
/// This object draws a circle that may have a border line and/or may be filled.
/// </remarks>
public class RepCircle : RepArcBase {
//------------------------------------------------------------------------------------------03.03.2004
/// <overloads>
/// <summary>Creates a circle.</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 circle is defined by the parameter <paramref name="rRadius"/>.
/// </remarks>
/// </overloads>
///
/// <summary>Creates a filled circle with a border line defined 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 brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
/// The circle is defined by the parameter <paramref name="rRadius"/>.
/// </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>
public RepCircle(PenProp penProp, BrushProp brushProp, Double rRadius) : base(penProp, brushProp, rRadius * 2.0, rRadius * 2.0, 0.0, 360.0) {
}
//------------------------------------------------------------------------------------------03.03.2004
/// <summary>Creates a circle with a border line defined 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 circle is defined by the parameter <paramref name="rRadius"/>.
/// </remarks>
/// <param name="penProp">Pen properties of the border line</param>
/// <param name="rRadius">Radius of the circle in points (1/72 inch)</param>
public RepCircle(PenProp penProp, Double rRadius) : this(penProp, null, rRadius) {
}
//------------------------------------------------------------------------------------------03.03.2004
/// <summary>Creates a filled circle defined by the radius in points (1/72 inch).</summary>
/// <remarks>
/// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
/// The circle is defined by the parameter <paramref name="rRadius"/>.
/// </remarks>
/// <param name="brushProp">Brush properties of the fill</param>
/// <param name="rRadius">Radius of the circle in points (1/72 inch)</param>
public RepCircle(BrushProp brushProp, Double rRadius) : this(null, brushProp, rRadius) {
}
}
#endregion
//------------------------------------------------------------------------------------------03.03.2004
#region RepCircleMM
//----------------------------------------------------------------------------------------------------
/// <summary>Report Circle Object (metric version)</summary>
/// <remarks>
/// This object draws a circle that may have a border line and/or may be filled.
/// </remarks>
public class RepCircleMM : RepCircle {
//------------------------------------------------------------------------------------------03.03.2004
/// <overloads>
/// <summary>Creates a circle (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 circle is defined by the parameter <paramref name="rRadiusMM"/>.
/// </remarks>
/// </overloads>
///
/// <summary>Creates a filled circle with a border line defined 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 circle is defined by the parameter <paramref name="rRadiusMM"/>.
/// </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>
public RepCircleMM(PenProp penProp, BrushProp brushProp, Double rRadiusMM) : base(penProp, brushProp, RT.rPointFromMM(rRadiusMM)) {
}
//------------------------------------------------------------------------------------------03.03.2004
/// <summary>Creates a circle with a border line defined by the radius in millimeters.</summary>
/// <remarks>
/// The pen properties object <paramref name="penProp"/> determines the characteristics of the border line.
/// The circle is defined by the parameter <paramref name="rRadiusMM"/>.
/// </remarks>
/// <param name="penProp">Pen properties of the border line</param>
/// <param name="rRadiusMM">Radius of the circle in millimeters</param>
public RepCircleMM(PenProp penProp, Double rRadiusMM) : this(penProp, null, rRadiusMM) {
}
//------------------------------------------------------------------------------------------03.03.2004
/// <summary>Creates a filled circle defined by the radius in millimeters.</summary>
/// <remarks>
/// The brush properties object <paramref name="brushProp"/> determines the characteristics of the fill.
/// The circle is defined by the parameter <paramref name="rRadiusMM"/>.
/// </remarks>
/// <param name="brushProp">Brush properties of the fill</param>
/// <param name="rRadiusMM">Radius of the circle in millimeters</param>
public RepCircleMM(BrushProp brushProp, Double rRadiusMM) : this(null, brushProp, rRadiusMM) {
}
}
#endregion
//------------------------------------------------------------------------------------------04.03.2004
#region RepEllipse
//----------------------------------------------------------------------------------------------------
/// <summary>Report Ellipse Object</summary>
/// <remarks>
/// This object draws an ellipse that may have a border line and/or may be filled.
/// </remarks>
public class RepEllipse : RepArcBase {
//------------------------------------------------------------------------------------------04.03.2004
/// <overloads>
/// <summary>Creates an ellipse.</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 ellipse is defined by the bounding rectangle described by the <paramref name="rWidth"/> and
/// <paramref name="rHeight"/> parameters.
/// </remarks>
/// </overloads>
///
/// <summary>Creates a filled ellipse with a border line specified by the bounding rectangle in points (1/72 inch).</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 ellipse is defined by the bounding rectangle described by the <paramref name="rWidth"/> and
/// <paramref name="rHeight"/> parameters.
/// </remarks>
/// <param name="penProp">Pen properties of the border line</param>
/// <param name="brushProp">Brush properties of the fill</param>
/// <param name="rWidth">Width in points (1/72 inch) of the bounding rectangle that defines the ellipse</param>
/// <param name="rHeight">Height in points (1/72 inch) of the bounding rectangle that defines the ellipse</param>
public RepEllipse(PenProp penProp, BrushProp brushProp, Double rWidth, Double rHeight)
: base(penProp, brushProp, rWidth, rHeight, 0.0, 360.0) {
}
//------------------------------------------------------------------------------------------04.03.2004
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -