[]
        
(Showing Draft Content)

C1.Framework.VectorIconElement

VectorIconElement Class

Represents an icon created from a vectorial definition.

Implements
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public abstract class VectorIconElement : IconElement, ISupportUia
Public MustInherit Class VectorIconElement
    Inherits IconElement
    Implements ISupportUia

Constructors

Name Description
VectorIconElement()

Initializes a new instance of the VectorIconElement class.

VectorIconElement(C1VectorIcon)

Initializes a new instance of the C1VectorIcon class.

VectorIconElement(C1VectorIcon, Style)

Initializes a new instance of the VectorIconElement class.

VectorIconElement(string)

Initializes a new instance of the VectorIconElement class.

Properties

Name Description
ActualViewBox

Returns the rectangle which determines panning and zooming of content inside the parent container.

AllowSmoothing

Determines whether smoothing (antialiasing) is applied to lines and curves and the edges of filled areas.

IsPathDirty

Gets a value indicating whether the graphics path needs to be regenerated.

ShouldResize

Determines whether icon image should be resized according to the C1Icon element size.

Stroke

The stroke color.

StrokeThickness

The stroke thickness.

ViewBox

Gets or sets the rectangle (in the icon coordinates) which will determine image placement.

Methods

Name Description
CreatePath()

When overridden in a derived class, creates the graphics path for the icon.

FinalizeUI()

Finalizes the user interface. This method is called when element is removed from UI.

GetImage(ref Image, int, int)

Gets the image represented by this C1Icon.

InitializeUI()

Initializes the UI.

OnIconChanged(C1Icon, PropertyChangedEventArgs)

Updates element properties on icon property changes.

SetPathDirty(bool)

Marks the graphics path as dirty, indicating it needs to be regenerated.