Hide Comments
Hide Comments

Comments (0)

Encapsulates a SVG style with presentation attributes

Namespace: FMX.RS.SVG

expandingInheritance Hierarchy

TPersistent
  FMX.RS.SVG.TSVGStyle
 

expandingSyntax

Delphi

type 
  TSVGStyle = class(TPersistent) 
  end; 
 

expandingConstructors

 

Name

Description

public constructor

Create

Overloaded. Initializes a new instance of the TSVGStyle class.

public constructor

Create(String,String)

Overloaded. Creates a style with the specified name and populates it.

public destructor

Destroy

Represents the destructor of the TSVGStyle class.

Top

expandingProperties

 

Name

Description

public property

clip

Represents property clip.

public property

clip_path

Represents property clip_path.

public property

clip_rule

Represents property clip_rule.

public property

color

Represents property color.

public property

color_interpolation

Represents property color_interpolation.

public property

color_rendering

Represents property color_rendering.

public property

cursor

Represents property cursor.

public property

display

Represents property display.

public property

Enabled

Controls whether the style is applied or not. If Enabled is false, the style will not be applied to svg elements

public property

fill

Represents property fill.

public property

fill_opacity

Represents property fill_opacity.

public property

fill_rule

Represents property fill_rule.

public property

font

Represents property font.

public property

font_family

Represents property font_family.

public property

font_size

Represents property font_size.

public property

font_style

Represents property font_style.

public property

font_weight

Represents property font_weight.

public property

marker

Represents property marker.

public property

marker_end

Represents property marker_end.

public property

marker_mid

Represents property marker_mid.

public property

marker_start

Represents property marker_start.

public property

Name

Specifies the style name

public property

OnChange

Occurs when the style changes

public property

opacity

Represents property opacity.

public property

overflow

Represents property overflow.

public property

shape_rendering

Represents property shape_rendering.

public property

stop_color

Represents property stop_color.

public property

stop_opacity

Represents property stop_opacity.

public property

stroke

Represents property stroke.

public property

stroke_dasharray

Represents property stroke_dasharray.

public property

stroke_dashoffset

Represents property stroke_dashoffset.

public property

stroke_linecap

Represents property stroke_linecap.

public property

stroke_linejoin

Represents property stroke_linejoin.

public property

stroke_opacity

Represents property stroke_opacity.

public property

stroke_width

Represents property stroke_width.

public property

StyleProperty[TSVGStyleProperty]

Reads and writes style property values

The Index specifies the style property or attribute to access

public property

StyleValues

Stores all the style properties or attributes of the style as name=value pairs

public property

text_anchor

Represents property text_anchor.

public property

text_decoration

Represents property text_decoration.

public property

text_rendering

Represents property text_rendering.

public property

visibility

Represents property visibility.

Top

expandingMethods

 

Name

Description

public method

AddStyle(IXMLNode)

Overloaded. Adds the attributes and values contained in the node to the style. The method iterates through all attributes of the node and adds them to the style

public method

AddStyle(String)

Overloaded.  Adds the attribute:value pairs to the current style.

The input string should contain attribute:value pairs separated by semi-colons, e.g., fill: #ffffff; stroke:# 000000; stroke-width:0.172

public method

Assign(TPersistent)

Represents method Assign(TPersistent).

protected method

AssignTo(TPersistent)

Represents method AssignTo(TPersistent).

protected method

Change

Overloaded. Represents method Change.

protected method

Change(TObject)

Overloaded. Represents method Change(TObject).

public method

LoadFromXML(IXMLNode)

Loads the style from the input Node. The style is cleared before loading.

public method

SetStyle(String)

Sets the style from the input string. The style is cleared before loading.

The input string should contain attribute:value pairs separated by semi-colons, e.g., fill: #ffffff; stroke:# 000000; stroke-width:0.172

public method

ToString

Returns a CSS formatted string representation of the style, which starts with the style name and then follows with attribute:pairs inside curly brackets, e.g.,

text.info { color: green; fill:#000000;fill-opacity:1. 0000000 }

Top

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb