Skip to main content

XRConvert Members

Enables you to convert value types and adjust values to different measure units.

Constructors

Name Description
XRConvert(Single) Initializes a new instance of the XRConvert class with the specified DPI.

Properties

Name Description
Dpi Returns the current DPI value.

Methods

Name Description
Convert(MarginsF, GraphicsUnit, GraphicsUnit) static Adjusts the document margins calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(MarginsF, Single, Single) static Adjusts the document margins calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(RectangleDF, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(RectangleDF, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Point, GraphicsUnit, GraphicsUnit) static Adjusts the coordinates of a point calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(Point, Single, Single) static Adjusts the coordinates of a point calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(PointF, GraphicsUnit, GraphicsUnit) static Adjusts the coordinates of a point calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(PointF, Single, Single) static Adjusts the coordinates of a point calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Margins, Single, Single) static Adjusts the document margins calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Rectangle, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(Rectangle, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(RectangleF, GraphicsUnit, GraphicsUnit) static Adjusts the location and size of a rectangle calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(RectangleF, Single, Single) static Adjusts the location and size of a rectangle calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Size, GraphicsUnit, GraphicsUnit) static Adjusts the size calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(Size, Single, Single) static Adjusts the size calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(SizeF, GraphicsUnit, GraphicsUnit) static Adjusts the size calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(SizeF, Single, Single) static Adjusts the size calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Int32, Single, Single) static Adjusts the integer value calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
Convert(Single, GraphicsUnit, GraphicsUnit) static Adjusts the floating-point value calculated for the specified unit of measure according to a new unit of measure. Inherited from GraphicsUnitConverter.
Convert(Single, Single, Single) static Adjusts the floating-point value calculated for the specified DPI according to a new DPI. Inherited from GraphicsUnitConverter.
ConvertFrom(Point, Single) Adjusts the coordinates of a point calculated for the specified DPI according to the current DPI.
ConvertFrom(Rectangle, Single) Adjusts the location and size of a rectangle calculated for the specified DPI according to the current DPI.
ConvertFrom(Size, Single) Adjusts the size calculated for the specified DPI according to the current DPI.
ConvertFrom(Int32, Single) Adjusts the integer value calculated for the specified DPI according to the current DPI.
ConvertMargins(DXMargins, Single, Single) static
ConvertMargins(Margins, Single, Single) static Adjusts the document margins according to the specified DPI setting.
ConvertTo(Point, Single) Adjusts the coordinates of a point calculated for the current DPI according to the specified DPI.
ConvertTo(Rectangle, Single) Adjusts the location and size of a rectangle calculated for the current DPI according to the specified DPI.
ConvertTo(Size, Single) Adjusts the size calculated for the current DPI according to the specified DPI.
ConvertTo(Int32, Single) Adjusts the integer value calculated for the current DPI according to the specified DPI.
DeviceDpiToDoc(PointF, Single) static Inherited from GraphicsUnitConverter.
DeviceDpiToDoc(RectangleF, Single) static Inherited from GraphicsUnitConverter.
DeviceDpiToDoc(SizeF, Single) static Inherited from GraphicsUnitConverter.
DeviceDpiToDoc(Single, Single) static Inherited from GraphicsUnitConverter.
DipToDoc(RectangleF) static Converts the location and size of a rectangle calculated in device-independent pixels (DIP) to a value calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
DipToDoc(SizeF) static Converts the size calculated in device-independent pixels (DIP) to a size calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
DipToDoc(Single) static Converts the floating-point value calculated in device-independent pixels (DIP) to a value calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
DipToTwips(RectangleF) static Inherited from GraphicsUnitConverter.
DipToTwips(Single) static Inherited from GraphicsUnitConverter.
DocToDeviceDpi(MarginsF, Single) static Inherited from GraphicsUnitConverter.
DocToDeviceDpi(PointF, Single) static Inherited from GraphicsUnitConverter.
DocToDeviceDpi(RectangleF, Single) static Inherited from GraphicsUnitConverter.
DocToDeviceDpi(SizeF, Single) static Inherited from GraphicsUnitConverter.
DocToDeviceDpi(Single, Single) static Inherited from GraphicsUnitConverter.
DocToDip(RectangleF) static Converts the location and size of a rectangle calculated in document units (measured in 1/300 of an inch) to a value calculated in device-independent pixels (DIP). Inherited from GraphicsUnitConverter.
DocToDip(SizeF) static Inherited from GraphicsUnitConverter.
DocToDip(Single) static Converts the floating-point value calculated in document units (measured in 1/300 of an inch) to a value calculated in device-independent pixels (DIP). Inherited from GraphicsUnitConverter.
DocToPixel(MarginsF) static Converts the document margins calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels. Inherited from GraphicsUnitConverter.
DocToPixel(PointF) static Converts the coordinates of a point calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels. Inherited from GraphicsUnitConverter.
DocToPixel(RectangleF) static Converts the location and size of a rectangle calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels. Inherited from GraphicsUnitConverter.
DocToPixel(SizeF) static Converts the size calculated in document units (measured in 1/300 of an inch) to a size calculated in pixels. Inherited from GraphicsUnitConverter.
DocToPixel(Single) static Converts the floating-point value calculated in document units (measured in 1/300 of an inch) to a value calculated in pixels. Inherited from GraphicsUnitConverter.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
PixelToDoc(PointF) static Converts the coordinates of a point calculated in pixels to a value calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
PixelToDoc(RectangleF) static Converts the location and size of a rectangle calculated in pixels to a value calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
PixelToDoc(SizeF) static Converts the size calculated in pixels to a size calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
PixelToDoc(Single) static Converts the floating-point value calculated in pixels to a value calculated in document units (measured in 1/300 of an inch). Inherited from GraphicsUnitConverter.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Round(PointF) static Adjusts the floating-point coordinates of a point to the nearest integer values. Inherited from GraphicsUnitConverter.
Round(RectangleF) static Adjusts the floating-point dimensions of a rectangle to the nearest integer values. Inherited from GraphicsUnitConverter.
StringArrayToString(String[]) static Converts the specified string array to a string value that delimits the array values with the “\r\n” sequence.
StringToStringArray(String) static Splits the specified string into an array of substrings at the positions defined by the “\r\n” sequence.
ToContentAlignment(TextAlignment) static Adjusts the specified TextAlignment value to a corresponding ContentAlignment value.
ToString() Returns a string that represents the current object. Inherited from Object.
ToTextAlignment(ContentAlignment) static Adjusts the specified ContentAlignment value to a corresponding TextAlignment value.
See Also