BarImageProvider Class
Represents a service that can provide images for bar controls.
public class BarImageProvider : IBarImageProvider
- Inheritance:
- object object
- Implements:
- IBarImageProvider
Constructors
BarImageProvider()
Initializes an instance of the class.
public BarImageProvider()
Methods
GetImage(string?, BarImageOptions)
Gets an object representing an image for the specified bar control key and set of options.
public object? GetImage(string? key, BarImageOptions options)
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies a bar control. |
options | BarImageOptions | A BarImageOptions that indicates the image options. |
Returns
GetImage(string?, BarImageSize)
Gets an object representing an image for the specified bar control key and size.
public object? GetImage(string? key, BarImageSize size)
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies a bar control. |
size | BarImageSize | A BarImageSize that indicates the image size. |
Returns
Register(string, Func<BarImageOptions, object?>)
Registers an image factory function for a key.
public void Register(string key, Func<BarImageOptions, object?> factory)
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies a bar control. |
factory | Func<BarImageOptions, object> | A factory method that examines BarImageOptions to return a value representing an image. |
Unregister(string)
Unregisters an image factory function for a key.
public bool Unregister(string key)
Parameter | Type | Description |
---|---|---|
key | string | A string that uniquely identifies a bar control. |
Returns
- bool:
true
if an image factory function was removed; otherwise,false
.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()