AquaLogic Interaction Development Kit (IDK) 6.0.0

IContentItem.GetImageHeight Method 

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

int GetImageHeight(
   IBaseProperty imageProperty
);

Parameters

imageProperty
The image property; cannot be null.

Return Value

The image height 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 has 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