Class Section
- Namespace
- C4.Net.Documentation
- Assembly
- C4.Net.Core.dll
Represents a single documentation section attached to the workspace or a model element.
[DataContract]
public sealed class Section
- Inheritance
-
Section
- Inherited Members
Properties
Content
Contains the section body in the configured markup format.
[DataMember(Name = "content", EmitDefaultValue = false)]
public string Content { get; }
Property Value
Element
References the model element that owns this section, when the section is element-specific.
public Element Element { get; }
Property Value
ElementId
The ID of the element.
[DataMember(Name = "elementId", EmitDefaultValue = false)]
public string ElementId { get; set; }
Property Value
Format
Identifies the markup format used by Content.
[DataMember(Name = "format", EmitDefaultValue = true)]
public Format Format { get; }
Property Value
Order
Defines the display order of the section.
[DataMember(Name = "order", EmitDefaultValue = true)]
public int Order { get; }
Property Value
Title
Provides the section title shown in documentation navigation.
[DataMember(Name = "title", EmitDefaultValue = true)]
public string Title { get; }
Property Value
Methods
Equals(Section)
Determines whether another section has the same scope and title.
public bool Equals(Section section)
Parameters
sectionSectionThe section to compare with this instance.
Returns
- bool
truewhen both sections refer to the same element scope and title; otherwise,false.
Equals(object)
Determines whether another object represents the same documentation section.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with this instance.
Returns
GetHashCode()
Computes a hash code from the scoped section title.
public override int GetHashCode()
Returns
- int
A hash code suitable for section set membership.