ClassImageInline
An inline-level document element which contains image.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ImageInline : DrawingInline, ISupportInitialize
Inheritance: objectDocumentElementInlineDrawingInlineImageInline
Implements:
Inherited Members
Constructors
ImageInline()
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline()
ImageInline(ImageInline)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(ImageInline originalImage)
Parameters
originalImage
The ImageInline which will be cloned.
ImageInline(Stream)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(Stream inputStream)
Parameters
inputStream
The stream from which to obtain the image source.
ImageInline(Stream, Size, string)
Initializes a new instance of the ImageInline class.
ImageInline(Uri)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(Uri uriSource)
Parameters
uriSource
Uri
The URI from which to obtain the image source.
ImageInline(WriteableBitmap)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(WriteableBitmap writableBitmap)
Parameters
writableBitmap
WriteableBitmap
The writable bitmap which will be used to create the image.
Properties
Alt
Gets or sets the alternative text for the image.
Declaration
[XamlSerializable]
public string Alt { get; set; }
Property Value
The alt.
Extension
Gets or sets the file extension.
Declaration
[XamlSerializable]
public string Extension { get; set; }
Property Value
The extension.
Height
Gets or sets the height.
Declaration
[XamlSerializable]
public override double Height { get; set; }
Property Value
The height.
Overrides
RawData
Gets or sets the image bytes in Base64 format. This property is used for serialization.
Declaration
[XamlSerializable]
public string RawData { get; set; }
Property Value
The raw data.
RotateAngle
Gets or sets the angle at which the image should be rotated.
Declaration
[XamlSerializable(0)]
public override double RotateAngle { get; set; }
Property Value
The rotate angle.
Overrides
Size
Gets or sets the size.
Declaration
public override Size Size { get; set; }
Property Value
Size
The size.
Overrides
Title
Gets or sets the title.
Declaration
[XamlSerializable]
public string Title { get; set; }
Property Value
The title.
UriSource
Gets or sets the URI which is used to obtain the image source.
Declaration
[XamlSerializable]
public Uri UriSource { get; set; }
Property Value
Uri
The URI source.
Methods
CopyContentFromOverride(DocumentElement)
Copies the source from another ImageInline.
Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
fromElement
The ImageInline to copy the source from.
Overrides
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another document element to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters
fromElement
The ImageInline to copy the properties from.
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a LayoutBox for the element.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
documentCollection
The document collection.
Returns
An ImageLayoutBox object representing the layout box for the current instance.
Overrides
CreateNewElementInstance()
Creates a new instance of this element.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new instance.
Overrides
GetBytes()
Gets the byte array used to create the image.
Init(Stream, Size, string)
Initializes the element.
Init(Stream, string)
Initializes the element.