New to Telerik UI for WinForms? Start a free 30-day trial

Represents an image message with an explicit layout size separate from the image's intrinsic dimensions.

Definition

Constructors

Initializes an image message with application-defined user data.

C#
public ChatMediaMessage(Image displayImage, Size size, Author author, DateTime timeStamp, object userData)
Parameters:displayImageImage

The image displayed in the chat bubble.

sizeSize

The requested image-bubble size before DPI scaling.

authorAuthor

The author displayed for the message.

timeStampDateTime

The time associated with the message.

userDataobject

Application-defined data associated with the message.

Initializes an image message without additional user data.

C#
public ChatMediaMessage(Image displayImage, Size size, Author author, DateTime timeStamp)
Parameters:displayImageImage

The image displayed in the chat bubble.

sizeSize

The requested image-bubble size before DPI scaling.

authorAuthor

The author displayed for the message.

timeStampDateTime

The time associated with the message.

Properties

Gets the image assigned to the media message's visual element.

C#
public Image DisplayImage { get; }

Gets the requested image-bubble size, which the chat item scales for the current DPI when measuring.

C#
public Size Size { get; }