API Reference
TopologyIconArtwork
Describes optional external artwork for a topology icon.
Inheritance
- Object
- TopologyIconArtwork
Usage
Explore 13 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 6
- Method TopologyIconArtwork.Image
- Method TopologyIconArtwork.InlineSvg
- Method TopologyIconArtwork.SvgFile
- Method TopologyIconArtwork.WithPreserveAspectRatio
- Property TopologyIconDefinition.Artwork
- Property TopologyNode.Artwork
Accepted by parameters 7
- Extension method TopologyChart.AddArtworkNode
- Extension method TopologyChart.AddAutoArtworkNode
- Extension method TopologyChart.WithNodeArtwork
- Method TopologyChartExtensions.AddArtworkNode
- Method TopologyChartExtensions.AddAutoArtworkNode
- Method TopologyChartExtensions.WithNodeArtwork
- Method TopologyIconDefinition.WithArtwork
Constructors
public TopologyIconArtwork() #Methods
public static TopologyIconArtwork Image(String href, String svgViewBox = "0 0 24 24") #TopologyIconArtworkCreates image artwork.
Parameters
- href System.String
- svgViewBox System.String = "0 0 24 24"
public static TopologyIconArtwork InlineSvg(String svgBody, String svgViewBox = "0 0 24 24") #TopologyIconArtworkCreates inline SVG artwork.
Parameters
- svgBody System.String
- svgViewBox System.String = "0 0 24 24"
public static Boolean IsSafeAssetPath(String? path) #BooleanReturns whether an artwork path is safe enough for pack-local file resolution.
Parameters
- path System.String?
public static Boolean IsSafeImageHref(String? href) #BooleanReturns whether an image href is safe enough for report embedding.
Parameters
- href System.String?
public static Boolean IsSafeSvgFragment(String? svgBody) #BooleanReturns whether an inline SVG fragment is safe enough for report embedding.
Parameters
- svgBody System.String?
public static TopologyIconArtwork SvgFile(String path, String svgViewBox = "0 0 24 24", String? previewPath = null) #TopologyIconArtworkCreates SVG file artwork.
Parameters
- path System.String
- svgViewBox System.String = "0 0 24 24"
- previewPath System.String? = null
public TopologyIconArtwork WithPreserveAspectRatio(String preserveAspectRatio) #TopologyIconArtworkSets the preserveAspectRatio value used when rendering SVG or image artwork.
Parameters
- preserveAspectRatio System.String
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String SvgViewBox { get; set; } #Gets or sets an SVG viewBox used for inline SVG artwork.
public String? SvgBody { get; set; } #Gets or sets trusted inline SVG fragment markup, such as path, rect, circle, and linearGradient elements.
public String? SvgPath { get; set; } #Gets or sets a relative or host-managed path to an SVG file.
public String? PreviewPath { get; set; } #Gets or sets a relative or host-managed path to a generated preview image.
public String? ImageHref { get; set; } #Gets or sets an image href, usually a data URI or host-managed URL.
public String PreserveAspectRatio { get; set; } #Gets or sets the preserveAspectRatio value used when rendering SVG or image artwork.
public Boolean HasSvgBody { get; } #Gets whether this artwork defines an inline SVG fragment.
public Boolean HasSvgPath { get; } #Gets whether this artwork references an SVG file.
public Boolean HasPreviewPath { get; } #Gets whether this artwork references a preview image.
public Boolean HasImageHref { get; } #Gets whether this artwork defines an image href.
public Boolean IsSafe { get; } #Gets whether inline SVG artwork can be embedded safely.