API Reference
TopologyIconPack
Represents a named set of reusable topology icons.
Inheritance
- Object
- TopologyIconPack
Usage
Explore 24 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 14
- Property TopologyIconCatalog.Packs
- Property TopologyIconCatalogItem.Pack
- Property TopologyIconCatalogLoadResult.LoadedPacks
- Method TopologyIconPack.AddIcon
- Method TopologyIconPack.WithIconTags
- Method TopologyIconPack.WithMetadata
- Method TopologyIconPack.WithTags
- Method TopologyIconPackJson.FromJson
- Method TopologyIconPackJson.LoadJsonManifest
- Method TopologyIconPackJson.LoadJsonManifestsFromDirectory
- Property TopologyIconPackLoadResult.Pack
- Property TopologyIconPackSummary.Pack
- Property TopologyIconPackValidationResult.Pack
- Property TopologyIconSvgPackImportResult.Pack
Accepted by parameters 10
- Method TopologyIconCatalog.AddOrReplacePack
- Method TopologyIconCatalog.AddPack
- Extension method TopologyIconPack.SaveJsonManifest
- Extension method TopologyIconPack.ToJsonManifest
- Extension method TopologyIconPack.Validate
- Extension method TopologyIconPack.WriteJsonManifest
- Method TopologyIconPackJson.SaveJsonManifest
- Method TopologyIconPackJson.ToJsonManifest
- Method TopologyIconPackJson.WriteJsonManifest
- Method TopologyIconValidationExtensions.Validate
Constructors
public TopologyIconPack(String id, String label, String? vendor = null, String? version = null, Boolean isBuiltIn = false) #Initializes a topology icon pack.
Parameters
- id System.String
- label System.String
- vendor System.String? = null
- version System.String? = null
- isBuiltIn System.Boolean = false
Methods
public TopologyIconPack AddIcon(String id, String label, TopologyNodeKind nodeKind, TopologyIconShape shape = Auto, String? symbol = null, String? color = null, String? category = null, TopologyNodeDisplayMode? displayMode = null) #TopologyIconPackAdds an icon definition to the pack.
Parameters
- id System.String
- label System.String
- nodeKind ChartForgeX.Topology.TopologyNodeKind
- shape ChartForgeX.Topology.TopologyIconShape = Auto
- symbol System.String? = null
- color System.String? = null
- category System.String? = null
- displayMode ChartForgeX.Topology.TopologyNodeDisplayMode? = null
public TopologyIconPack AddIcon(TopologyIconDefinition icon) #TopologyIconPackAdds a pre-built icon definition to the pack.
Parameters
- icon ChartForgeX.Topology.TopologyIconDefinition
public TopologyIconPack WithIconTags(String iconId, params String[] tags) #TopologyIconPackAdds search tags to an icon inside this pack.
Parameters
- iconId System.String
- tags System.String[]
public TopologyIconPack WithMetadata(String key, String value) #TopologyIconPackAdds or replaces pack metadata and returns the current pack.
Parameters
- key System.String
- value System.String
public TopologyIconPack WithTags(params String[] tags) #TopologyIconPackAdds pack-level search tags and returns the current pack.
Parameters
- tags System.String[]
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Id { get; set; } #Gets or sets the stable pack id.
public String Label { get; set; } #Gets or sets the display label.
public String? Vendor { get; set; } #Gets or sets the optional pack vendor.
public String? Version { get; set; } #Gets or sets the optional pack version.
public Boolean IsBuiltIn { get; set; } #Gets whether the pack is supplied by ChartForgeX.
public IReadOnlyList<TopologyIconDefinition> Icons { get; } #Gets icons in the pack.
public Dictionary<String, String> Metadata { get; } #Gets arbitrary metadata for host-side pickers and vendor adapters.
public List<String> Tags { get; } #Gets search tags for host-side pickers.
Extension Methods
public static Void SaveJsonManifest(TopologyIconPack pack, String path, Boolean indented = true) #VoidSaves a topology icon pack to a JSON manifest file.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- path System.String
- The target manifest file path.
- indented System.Boolean = true
- Whether the manifest should be indented.
public static String ToJsonManifest(TopologyIconPack pack, Boolean indented = true) #StringSerializes a topology icon pack as a deterministic JSON manifest.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- indented System.Boolean = true
- Whether the manifest should be indented.
Returns
The JSON manifest.
public static TopologyIconPackValidationResult Validate(TopologyIconPack pack) #TopologyIconPackValidationResultValidates a topology icon pack for authoring issues and renderer compatibility.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack to validate.
Returns
Validation diagnostics for the pack.
public static Void WriteJsonManifest(TopologyIconPack pack, TextWriter writer, Boolean indented = true) #VoidWrites a topology icon pack JSON manifest to a text writer.
Parameters
- pack ChartForgeX.Topology.TopologyIconPack
- The icon pack.
- writer System.IO.TextWriter
- The target text writer.
- indented System.Boolean = true
- Whether the manifest should be indented.