Xport Interface: markup::styles

For a derived element object, retrieves all style values, or clears all styles in the element's style attribute.

   virtual std::map<css_property, std::string> markup::styles();1st Variety
virtual const std::map<css_property, std::string> markup::styles() const;2nd Variety

Parameters

none

Returns

Returns a style map, (or const style map in the 2nd variety) which includes the css property/value pairs for all css properties set in the style attribute for the called element.

Remarks

This operation is revelant only if it is called on an element derived object. If called on a pcdata, comment, or procinstr object, an empty style map will be returned.

When called on a derived element object, the first variety will return a map of all styles for the called element. When called on a non-const element object, a non-const style map is returned, enabling the caller to modify or clear the styles.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.