skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ImageInline

An inline-level document element which contains image.

Inheritance
System.Object
DocumentElement
Inline
DrawingInline
ImageInline
Inherited Members
Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)
Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)
Inline.CopyContentFrom(DocumentElement)
Inline.FieldStart
Inline.IsCopyable
DocumentElement.GetStyleProperty(IStylePropertyDefinition)
DocumentElement.GetStyleProperty(String)
DocumentElement.EnumerateChildrenOfType<T>()
DocumentElement.GetParentOfType<T>()
DocumentElement.CreateLayoutBox()
DocumentElement.CopyPropertiesFrom(DocumentElement)
DocumentElement.CopyPropertiesFromStyle(StyleDefinition)
DocumentElement.ExtractStyleFromProperties()
DocumentElement.ExtractStyleFromLocalProperties()
DocumentElement.InvalidateAssociatedBoxesArrange()
DocumentElement.InvalidateAssociatedBoxesMeasure()
DocumentElement.InvalidateAssociatedBoxesLayout()
DocumentElement.GetAssociatedLayoutBoxes()
DocumentElement.GetRootDocument()
DocumentElement.CreateDeepCopy()
DocumentElement.CreateShallowCopy()
DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)
DocumentElement.ClearValue(IStylePropertyDefinition)
DocumentElement.OnRemoved()
DocumentElement.OnStyleChanging()
DocumentElement.OnStyleChanged()
DocumentElement.add_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_StylePropertyChanged(StylePropertyChangeEventHandler)
DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)
DocumentElement.OnParentChanging()
DocumentElement.OnParentChanged()
DocumentElement.add_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.remove_PropertyValueChanged(StylePropertyChangeEventHandler)
DocumentElement.ChildIndex
DocumentElement.HasStyle
DocumentElement.Style
DocumentElement.StyleName
DocumentElement.Tag
DocumentElement.DefaultStyleSettings
DocumentElement.FirstLayoutBox
DocumentElement.LastLayoutBox
DocumentElement.IsFirstLayoutBoxInitialized
DocumentElement.DocumentElements
DocumentElement.Parent
DocumentElement.Children
DocumentElement.PreviousSibling
DocumentElement.NextSibling
DocumentElement.Cursor
DocumentElement.OriginalProperties
DocumentElement.RevisionInfo
DocumentElement.StyleChanging
DocumentElement.StyleChanged
DocumentElement.StylePropertyChanged
DocumentElement.ParentChanging
DocumentElement.ParentChanged
DocumentElement.PropertyValueChanged
Namespace: Telerik.Windows.Documents.Model
Assembly: Telerik.Windows.Documents.dll

Syntax

public class ImageInline : DrawingInline, IImageDocumentElement, IDrawingImageElement, ISupportInitialize

Constructors

ImageInline()

Initializes a new instance of the ImageInline class.

Declaration
public 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
DrawingInline.Height

ImageSource

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
DrawingInline.RotateAngle

Size

Gets or sets the size.

Declaration
public override Size Size { get; set; }
Property Value
System.Windows.Size

The size.

Overrides
DrawingInline.Size

Target

Declaration
public HyperlinkTargets Target { get; set; }
Property Value
HyperlinkTargets

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.

URL

Declaration
public string URL { get; set; }
Property Value
System.String

Width

Gets or sets the width.

Declaration
[XamlSerializable]
public override double Width { get; set; }
Property Value
System.Double

The width.

Overrides
DrawingInline.Width

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
Inline.CopyContentFromOverride(DocumentElement)

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
Inline.CopyPropertiesFromOverride(DocumentElement)

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
DocumentElement.CreateLayoutBox(DocumentStructureCollection)

CreateNewElementInstance()

Creates a new instance of this element.

Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
DocumentElement

The new instance.

Overrides
DocumentElement.CreateNewElementInstance()

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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
  • Themes Generator
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
  • System Requirements
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.