ScaleEffect.ByX Property

Sets or returns a single-precision floating-point number that represents scaling or moving an object horizontally by a specified percentage of the screen width, depending on whether it used in conjunction with a ScaleEffect or MotionEffect object, respectively. For example, a value of 50 for a motion effect means to move the object half the screen width to the right. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property ByX As Single
    Get
    Set
'Usage
Dim instance As ScaleEffect
Dim value As Single

value = instance.ByX

instance.ByX = value
float ByX { get; set; }

Property Value

Type: System.Single

Remarks

Negative numbers move the object horizontally to the left. Floating point numbers (for example, 55.5) are allowed.

To scale or move an object vertically, use the ByY property.

If both the ByX and ByY properties are set, then the object is scaled or moves both horizontally and vertically.

Do not confuse this property with the By property of the ColorEffect, RotationEffect, or PropertyEffect objects that are used to set colors, rotations, or other properties of an animation behavior, respectively.

See Also

Reference

ScaleEffect Interface

ScaleEffect Members

Microsoft.Office.Interop.PowerPoint Namespace