Partager via


PictureFormat.CropTop Property

Returns or sets the number of points that are cropped off the top of the specified picture or OLE object. Read/write.

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

Syntax

'Declaration
Property CropTop As Single
    Get
    Set
'Usage
Dim instance As PictureFormat
Dim value As Single

value = instance.CropTop

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

Property Value

Type: System.Single

Remarks

Cropping is calculated relative to the original size of the picture. For example, if you insert a picture that is originally 100 points high, rescale it so that it is 200 points high, and then set the CropTop property to 50, 100 points (not 50) will be cropped off the top of your picture.

See Also

Reference

PictureFormat Interface

PictureFormat Members

Microsoft.Office.Interop.PowerPoint Namespace