API Reference
OfficeTransform
Dependency-free 2D affine transform in a local top-left coordinate space.
Inheritance
- ValueType
- OfficeTransform
Usage
Explore 39 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 17
- Property OfficeDrawingEffectGroup.Transform
- Property OfficeDrawingSoftMask.Transform
- Method OfficeDrawingTilingPattern.GetTileTransforms
- Property OfficeDrawingTilingPattern.Transform
- Method OfficeImageFrameTransform.CreateDestinationTransform
- Method OfficeImageProjection.CreateUnitSquareTransform
- Property OfficeInkStroke.Transform
- Property OfficeRadialGradient.CoordinateTransform
- Property OfficeScanProcessingReport.ProcessedToSource
- Property OfficeScanProcessingReport.SourceToProcessed
- Property OfficeShape.Transform
- Method OfficeTransform.Invert
- Method OfficeTransform.RotateDegrees
- Method OfficeTransform.Scale
- Method OfficeTransform.Then
- Method OfficeTransform.Translate
- Property OfficeTransform.Identity
Accepted by parameters 22
- Method OfficeDrawing.AddBorderBox
- Method OfficeDrawing.AddEffectDrawing
- Method OfficeDrawing.AddTilingPattern
- Constructor OfficeDrawingEffectGroup.OfficeDrawingEffectGroup
- Constructor OfficeDrawingSoftMask.OfficeDrawingSoftMask
- Method OfficeDrawingSoftMask.CreateWithLuminosityStandard
- Constructor OfficeDrawingTilingPattern.OfficeDrawingTilingPattern
- Method OfficeInkPoint.Transform
- Method OfficeLinearGradient.FromTransformedAngle
- Method OfficeRadialGradient.TransformCoordinates
- Method OfficeRasterCanvas.DrawAffineImage
- Method OfficeRasterCanvas.DrawTextLineTransformed
- Method OfficeRasterResampler.Transform
- Method OfficeSvgFormatting.AppendMatrixTransformAttribute
- Method OfficeSvgFormatting.FormatMatrixTransform
- Method OfficeTransform.Equals
- Method OfficeTransform.op_Equality
- Method OfficeTransform.op_Equality
- Method OfficeTransform.op_Inequality
- Method OfficeTransform.op_Inequality
- Method OfficeTransform.Then
- Method OfficeTransform.TryInvert
Constructors
public OfficeTransform(Double m11, Double m12, Double m21, Double m22, Double offsetX, Double offsetY) #Creates an affine transform.
Parameters
- m11 System.Double
- m12 System.Double
- m21 System.Double
- m22 System.Double
- offsetX System.Double
- offsetY System.Double
Methods
public Boolean Equals(OfficeTransform other) #BooleanIndicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficeTransform
- An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
public override Boolean Equals(Object? obj) #BooleanIndicates whether this instance and a specified object are equal.
Parameters
- obj System.Object?
- The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.
public override Int32 GetHashCode() #Int32Returns the hash code for this instance.
Returns
A 32-bit signed integer that is the hash code for this instance.
public OfficeTransform Invert() #OfficeTransformReturns the inverse transform.
Exceptions
InvalidOperationException– Thrown when the transform cannot be inverted.
public static Boolean op_Equality(OfficeTransform left, OfficeTransform right) #BooleanReturns true when two transforms are equal.
Parameters
- left OfficeIMO.Drawing.OfficeTransform
- right OfficeIMO.Drawing.OfficeTransform
public static Boolean op_Inequality(OfficeTransform left, OfficeTransform right) #BooleanReturns true when two transforms are not equal.
Parameters
- left OfficeIMO.Drawing.OfficeTransform
- right OfficeIMO.Drawing.OfficeTransform
public static OfficeTransform RotateDegrees(Double degrees) #OfficeTransformCreates a clockwise rotation transform around the local origin.
Parameters
- degrees System.Double
public static OfficeTransform RotateDegrees(Double degrees, Double centerX, Double centerY) #OfficeTransformCreates a clockwise rotation transform around a local point.
Parameters
- degrees System.Double
- centerX System.Double
- centerY System.Double
public static OfficeTransform Scale(Double scaleX, Double scaleY) #OfficeTransformCreates a scale transform around the local origin.
Parameters
- scaleX System.Double
- scaleY System.Double
public OfficeTransform Then(OfficeTransform next) #OfficeTransformReturns a transform that applies this transform first, then the supplied transform.
Parameters
- next OfficeIMO.Drawing.OfficeTransform
public OfficePoint TransformPoint(OfficePoint point) #OfficePointTransforms a point in local top-left coordinates.
Parameters
- point OfficeIMO.Drawing.OfficePoint
public ValueTuple<Double, Double, Double, Double> TransformRectangleBounds(Double x, Double y, Double width, Double height) #ValueTuple<Double, Double, Double, Double>Calculates axis-aligned bounds for a transformed rectangle.
Parameters
- x System.Double
- Rectangle left coordinate.
- y System.Double
- Rectangle top coordinate.
- width System.Double
- Rectangle width.
- height System.Double
- Rectangle height.
Returns
Axis-aligned bounds of the transformed rectangle.
public static OfficeTransform Translate(Double offsetX, Double offsetY) #OfficeTransformCreates a translation transform.
Parameters
- offsetX System.Double
- offsetY System.Double
public Boolean TryInvert(out OfficeTransform inverse) #BooleanAttempts to create the inverse transform.
Parameters
- inverse OfficeIMO.Drawing.OfficeTransform
- Inverse transform when inversion succeeds.
Returns
True when the transform has a non-zero determinant.