AquaLogic Interaction Development Kit (IDK) 6.0.0

IContentItem.GetImageWidth Method 

Returns the width of the image (in pixels) for the specified IImageProperty.

int GetImageWidth(
   IBaseProperty imageProperty
);

Parameters

imageProperty
The image property; cannot be null.

Return Value

The image width in pixels.

Remarks

Zero will be returned if no image is set for the property, or if IContentItemManager.CheckInItem has not been called to persist the image property value.

See the code sample in setImagePropertyValue for an example of how to retrieve and update a value for an IImageProperty.

Exceptions

Exception Type Condition
InvalidOperationException The content item had not been checked in or has already been removed.
ArgumentException The item does not contain the specified property.

See Also

IContentItem Interface | Plumtree.Remote.PRC.Content.Item Namespace