StiServiceCategoryBitmapAttribute Class

Namespace: Stimulsoft.Base.Services

Inheritance

Inherits from: Attribute

Constructors

Constructor Description
StiServiceCategoryBitmapAttribute(Type type, string bitmapName) Creates a new attribute of the type StiServiceCategoryBitmapAttribute.
StiServiceCategoryBitmapAttribute(Type type, string bitmapName, string bigBitmapName) Creates a new attribute of the type StiServiceCategoryBitmapAttribute.

StiServiceCategoryBitmapAttribute(type: Type, bitmapName: string)

Creates a new attribute of the type StiServiceCategoryBitmapAttribute.

Parameters

  • type (Type) — Service type which categories assigning a bitmap.
  • bitmapName (string) — Path to a bitmap in resources.

StiServiceCategoryBitmapAttribute(type: Type, bitmapName: string, bigBitmapName: string)

Creates a new attribute of the type StiServiceCategoryBitmapAttribute.

Parameters

  • type (Type) — Service type to which a bitmap is compared to.
  • bitmapName (string) — A path to the bitmap in resources.
  • bigBitmapName (string) — A path to the big bitmap in resources.

Properties

Property Type Description
BigBitmapName string Gets or sets a path to the big bitmap in resources.
BigBitmapNameDark string Gets or sets a path to the big bitmap in resources.
BitmapName string Gets or sets a path to a bitmap in resources.
BitmapNameDark string Gets or sets a path to the bitmap in resources.
Type Type Gets or sets service type to which a bitmap is assign to.

Methods

Method Returns Description
GetBigImage static (+1 overloads) Bitmap Returns a big service image according to its type.
GetImage static (+1 overloads) Bitmap Returns a bitmap of service category according to its type.
GetImagePath static string Returns a path to image according to its type.

Method Details

GetBigImage static

GetBigImage(type: Type, isDark: bool): Bitmap

Returns a big service image according to its type.

Parameters

  • type (Type) — A service type.
  • isDark (bool)

Returns Bitmap — A big image.


GetBigImage(isDark: bool): Bitmap

Returns an big image of this type.

Parameters

  • isDark (bool)

Returns Bitmap — A big image.


GetImage static

GetImage(type: Type, isDark: bool): Bitmap

Returns a bitmap of service category according to its type.

Parameters

  • type (Type) — Service type.
  • isDark (bool)

Returns Bitmap — Image.


GetImage(isDark: bool): Bitmap

Returns bitmap of this attribute.

Parameters

  • isDark (bool)

Returns Bitmap — Image.


GetImagePath static

GetImagePath(type: Type): string

Returns a path to image according to its type.

Parameters

  • type (Type) — Service type.

Returns string — Path to Image.