Plumtree EDK (Enterprise Web Development Kit) 5.4.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 code sample in setImagePropertyValue on how to retrieve and update 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