CommonImageSourceProvider Class
Provides IntelliPrompt with a common System.Windows.Media.ImageSource that is included in the SyntaxEditor assembly as a resource.
public class CommonImageSourceProvider : IImageSourceProvider
- Inheritance:
- System.Object Object
- Implements:
- IImageSourceProvider
Constructors
CommonImageSourceProvider(CommonImageKind)
Initializes a new instance of the CommonImageSourceProvider
class.
public CommonImageSourceProvider(CommonImageKind imageKind)
Parameter | Type | Description |
---|---|---|
imageKind | CommonImageKind | The CommonImageKind indicating the common image type. |
Properties
DefaultImageSet
Gets or sets the CommonImageSet indicating the set of images from which to pull.
public static CommonImageSet DefaultImageSet { get; set; }
Property Value
- CommonImageSet:
The CommonImageSet indicating the set of images from which to pull. The default value is
MetroLight
.
ImageKind
Gets or sets the CommonImageKind indicating the kind of common image.
public CommonImageKind ImageKind { get; set; }
Property Value
- CommonImageKind:
The CommonImageKind indicating the kind of common image.
Methods
GetImageSource()
Returns the System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element, using the DefaultImageSet.
public ImageSource GetImageSource()
Returns
- System.Windows.Media.ImageSource:
The System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element, using the DefaultImageSet.
GetImageSource(CommonImageSet)
Returns the System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element.
public virtual ImageSource GetImageSource(CommonImageSet imageSet)
Parameter | Type | Description |
---|---|---|
imageSet | CommonImageSet |
Returns
- System.Windows.Media.ImageSource:
The System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element.
GetImageSource(Nullable<Color>)
Returns the System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element, using the specified background color hint to select a color set, and falling back to DefaultImageSet as needed.
public ImageSource GetImageSource(Color? backgroundColorHint)
Parameter | Type | Description |
---|---|---|
backgroundColorHint | System.Nullable<System.Windows.Media.Color> |
Returns
- System.Windows.Media.ImageSource:
The System.Windows.Media.ImageSource to use in an IntelliPrompt user interface element, using the specified background color hint to select a color set, and falling back to DefaultImageSet as needed.
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()