Class InlineImageContainer
Inherited Members
Namespace: System.Windows.Documents
Assembly: OpenSilver.dll
Syntax
public sealed class InlineImageContainer : Inline, IUIElement, IDependencyObject
Fields
| Improve this Doc View SourceHeightProperty
Identifies the Height dependency property.
Declaration
public static readonly DependencyProperty HeightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SourceProperty
Identifies the Source dependency property.
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
StretchProperty
Identifies the Stretch dependency property.
Declaration
public static readonly DependencyProperty StretchProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
WidthProperty
Identifies the Width dependency property.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceHeight
Gets or sets the suggested height of a InlineImageContainer.
Declaration
[TypeConverter(typeof(LengthConverter))]
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height, in pixels, of the object. The default is System.Double.NaN. Except for the special System.Double.NaN value, this value must be equal to or greater than 0. |
Source
Gets or sets the source for the image.
Declaration
[TypeConverter(typeof(InlineImageContainer.ExtendedImageSourceConverter))]
public ImageSource Source { get; set; }
Property Value
Type | Description |
---|---|
ImageSource | A source object for the drawn image. |
Stretch
Gets or sets a value that describes how an InlineImageContainer should be stretched to fill the destination rectangle.
Declaration
public Stretch Stretch { get; set; }
Property Value
Type | Description |
---|---|
Stretch | A value of the Stretch enumeration that specifies how the source image is applied if the Height and Width of the InlineImageContainer are specified and are different than the source image's height and width. The default value is Uniform. |
Width
Gets or sets the width of a InlineImageContainer.
Declaration
[TypeConverter(typeof(LengthConverter))]
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the object, in pixels. The default is System.Double.NaN. Except for the special System.Double.NaN value, this value must be equal to or greater than 0. |