Class ImageInline
An inline-level document element which contains image.
Inherited Members
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ImageInline : DrawingInline, IImageDocumentElement, IDrawingImageElement, ISupportInitialize
Constructors
ImageInline()
ImageInline(Stream)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(Stream inputStream)
Parameters
System.IO.Stream
inputStream
The stream from which to obtain the image source. |
ImageInline(Stream, Size, String)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(Stream inputStream, Size size, string extension)
Parameters
System.IO.Stream
inputStream
The stream from which to obtain the image source. |
System.Windows.Size
size
The size of the element. |
System.String
extension
The extension of the image. |
ImageInline(Uri)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(Uri uriSource)
Parameters
System.Uri
uriSource
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
System.Windows.Media.Imaging.WriteableBitmap
writableBitmap
The writable bitmap which will be used to create the image. |
ImageInline(ImageInline)
Initializes a new instance of the ImageInline class.
Declaration
public ImageInline(ImageInline originalImage)
Parameters
ImageInline
originalImage
The ImageInline which will be cloned. |
Properties
Alt
Gets or sets the alternative text for the image.
Declaration
[XamlSerializable]
public string Alt { get; set; }
Property Value
System.String
The alt. |
Extension
Gets or sets the file extension.
Declaration
[XamlSerializable]
public string Extension { get; set; }
Property Value
System.String
The extension. |
Height
Gets or sets the height.
Declaration
[XamlSerializable]
public override double Height { get; set; }
Property Value
System.Double
The height. |
Overrides
ImageSource
Gets the image source last used to visualize the image.
Declaration
public BitmapImage ImageSource { get; }
Property Value
System.Windows.Media.Imaging.BitmapImage
|
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
System.String
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
System.Double
The rotate angle. |
Overrides
Size
Gets or sets the size.
Declaration
public override Size Size { get; set; }
Property Value
System.Windows.Size
The size. |
Overrides
Title
Gets or sets the title.
Declaration
[XamlSerializable]
public string Title { get; set; }
Property Value
System.String
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
System.Uri
The URI source. |
Width
Gets or sets the width.
Declaration
[XamlSerializable]
public override double Width { get; set; }
Property Value
System.Double
The width. |
Overrides
Methods
CopyContentFromOverride(DocumentElement)
Copies the source from another ImageInline.
Declaration
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters
DocumentElement
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
DocumentElement
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
DocumentStructureCollection
documentCollection
The document collection. |
Returns
LayoutBox
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
DocumentElement
The new instance. |
Overrides
GetBytes()
Gets the byte array used to create the image.
Declaration
public byte[] GetBytes()
Returns
System.Byte[]
|
Init(Stream, String)
Initializes the element.
Declaration
public void Init(Stream inputStream, string extension)
Parameters
System.IO.Stream
inputStream
The stream from which to obtain the image source. |
System.String
extension
The extension of the image. |
Init(Stream, Size, String)
Initializes the element.
Declaration
public void Init(Stream inputStream, Size size, string extension)
Parameters
System.IO.Stream
inputStream
The stream from which to obtain the image source. |
System.Windows.Size
size
The size of the element. |
System.String
extension
The extension of the image. |