Table of Contents

Class Styles

Namespace
C4.Net
Assembly
C4.Net.Core.dll

The styles associated with this set of views.

[DataContract]
public sealed class Styles
Inheritance
Styles
Inherited Members

Properties

Elements

The set of element styles.

[DataMember(Name = "elements", EmitDefaultValue = false)]
public IList<ElementStyle> Elements { get; set; }

Property Value

IList<ElementStyle>

Relationships

The set of relationship styles.

[DataMember(Name = "relationships", EmitDefaultValue = false)]
public IList<RelationshipStyle> Relationships { get; }

Property Value

IList<RelationshipStyle>

Methods

Add(ElementStyle)

Adds an element style when no style for the same tag exists yet.

public void Add(ElementStyle elementStyle)

Parameters

elementStyle ElementStyle

The element style to add.

Exceptions

ArgumentException

Thrown when another element style already uses the same tag.

Add(RelationshipStyle)

Adds a relationship style when no style for the same tag exists yet.

public void Add(RelationshipStyle relationshipStyle)

Parameters

relationshipStyle RelationshipStyle

The relationship style to add.

Exceptions

ArgumentException

Thrown when another relationship style already uses the same tag.

ClearElementStyles()

Removes all element styles.

public void ClearElementStyles()

ClearRelationshipStyles()

Removes all relationship styles.

public void ClearRelationshipStyles()