Class ImageContainerAdv
Represents the ImageContainerAdv class.
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.UWP.dll
Syntax
public class ImageContainerAdv : ShapeBase, INode
Examples
The following code example demonstrates how to add an image.
<RichTextBoxAdv:ParagraphAdv>
<!-- Adds the image. -->
<RichTextBoxAdv:ImageContainerAdv ImageString="/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAARAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9LP8Agqv/AMFg7X/gmZ4k8HaXb/Dy/wDiNc6xaXOv+Ihaaslh/wAIroNtPbQT6k4MUhl/eXKKkQC7yr/MMV9k6ZqdvrWm295aTR3FrdxLNDLG25JUYAqwPcEEEV+XH7Vn/BJn9o/9v39uH4+eMD8VrP4EeBfEPhy3+GWj2tx4R0zxbL4r8PGEy3b5e5DWKvdyzEY2TH5SduxSfrn/AIJEeBPix8JP+CfngDwV8adJbSvHnga2k8PTOdQgvl1G0tpGis7lZIZHGHtxFwxDgg7lFGH96heekt/k3LTtpHk0+LmlO6tHQr6VUoax2fqkvn8XOrr3LKFneV5fStFFFAH/2Q=="
Width="100" Height="200" />
<!-- You can add any number of spans, images, comments and hyperlink fields here. -->
</RichTextBoxAdv:ParagraphAdv>
ParagraphAdv paragraph = new ParagraphAdv();
// Adds the image.
ImageContainerAdv imageContainerAdv = new ImageContainerAdv();
imageContainerAdv.ImageString = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAARAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9LP8Agqv/AMFg7X/gmZ4k8HaXb/Dy/wDiNc6xaXOv+Ihaaslh/wAIroNtPbQT6k4MUhl/eXKKkQC7yr/MMV9k6ZqdvrWm295aTR3FrdxLNDLG25JUYAqwPcEEEV+XH7Vn/BJn9o/9v39uH4+eMD8VrP4EeBfEPhy3+GWj2tx4R0zxbL4r8PGEy3b5e5DWKvdyzEY2TH5SduxSfrn/AIJEeBPix8JP+CfngDwV8adJbSvHnga2k8PTOdQgvl1G0tpGis7lZIZHGHtxFwxDgg7lFGH96heekt/k3LTtpHk0+LmlO6tHQr6VUoax2fqkvn8XOrr3LKFneV5fStFFFAH/2Q==";
imageContainerAdv.Width = 100;
imageContainerAdv.Height = 200;
paragraph.Inlines.Add(imageContainerAdv);
// You can add any number of spans, images, comments and hyperlink fields here.
Dim paragraph As New ParagraphAdv()
' Adds the image.
Dim imageContainerAdv As New ImageContainerAdv()
imageContainerAdv.ImageString = "/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAARAA0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9LP8Agqv/AMFg7X/gmZ4k8HaXb/Dy/wDiNc6xaXOv+Ihaaslh/wAIroNtPbQT6k4MUhl/eXKKkQC7yr/MMV9k6ZqdvrWm295aTR3FrdxLNDLG25JUYAqwPcEEEV+XH7Vn/BJn9o/9v39uH4+eMD8VrP4EeBfEPhy3+GWj2tx4R0zxbL4r8PGEy3b5e5DWKvdyzEY2TH5SduxSfrn/AIJEeBPix8JP+CfngDwV8adJbSvHnga2k8PTOdQgvl1G0tpGis7lZIZHGHtxFwxDgg7lFGH96heekt/k3LTtpHk0+LmlO6tHQr6VUoax2fqkvn8XOrr3LKFneV5fStFFFAH/2Q=="
imageContainerAdv.Width = 100
imageContainerAdv.Height = 200
paragraph.Inlines.Add(imageContainerAdv)
' You can add any number of spans, images, comments and hyperlink fields here.
Constructors
ImageContainerAdv()
Initializes a new instance of the ImageContainerAdv class.
Declaration
public ImageContainerAdv()
Fields
HeightProperty
Identifies the Height dependency property.
Declaration
public static readonly DependencyProperty HeightProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty | The identifier for the Height dependency property. |
ImageSourceProperty
Identifies the ImageSource dependency property.
Declaration
public static readonly DependencyProperty ImageSourceProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty | The identifier for the ImageSource dependency property. |
ImageStringProperty
Identifies the ImageString dependency property.
Declaration
public static readonly DependencyProperty ImageStringProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty | The identifier for the ImageString dependency property. |
WidthProperty
Identifies the Width dependency property.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type | Description |
---|---|
Windows.UI.Xaml.DependencyProperty | The identifier for the Width dependency property. |
Properties
ImageSource
Gets or Sets the ImageSource of the ImageContainerAdv.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Media.ImageSource | The ImageSource of the ImageContainerAdv. |
ImageString
Gets or sets the string of the ImageContainerAdv.
Declaration
public string ImageString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The string of the ImageContainerAdv. |
Remarks
The value can be Base64 string of an image.
Methods
OnHeightChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when height changed.
Declaration
protected static void OnHeightChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | dependencyObject | The dependency object. |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs | args | The Windows.UI.Xaml.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWidthChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when width of the ImageContainerAdv is changed.
Declaration
protected static void OnWidthChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | dependencyObject | The dependency object. |
Windows.UI.Xaml.DependencyPropertyChangedEventArgs | args | The Windows.UI.Xaml.DependencyPropertyChangedEventArgs instance containing the event data. |