Class ToolBarUtils
Contains static methods and properties related to the toolbars.
public class ToolBarUtils
- Inheritance
-
ToolBarUtils
Properties
- DefaultImageSize144dpi
Defines the default size of toolbar images for displays with 144 DPI.
- DefaultImageSize192dpi
Defines the default size of toolbar images for displays with 192 DPI.
- DefaultImageSize288dpi
Defines the default size of toolbar images for displays with 288 DPI.
- DefaultImageSize96dpi
Defines the default size of toolbar images for displays with 96 DPI.
Methods
- FromSvgUrlForToolbar(string, Control, Color?)
Initializes a new instance of the ImageSet class from the specified url which points to svg file or resource.
- GetDefaultImageSize(SizeD)
Returns suggested toolbar image size depending on the given DPI value.
- GetDefaultImageSize(Control?)
Returns suggested toolbar image size in pixels depending on the given DPI value.
- GetDefaultImageSize(double)
Returns suggested toolbar image size depending on the given DPI value.
- GetNormalAndDisabledSvg(string, Control, SizeI?)
Initializes a tuple with two instances of the ImageSet class from the specified url which contains svg data. Images are loaded for the normal and disabled states using GetSvgColor(KnownSvgColor).