API Reference
Class
ImageBlock
Image block with optional title and caption.
Inheritance
- MarkdownBlock
- ImageBlock
Constructors
ImageBlock 2 overloads
public ImageBlock(String path, String alt, String title) #Create an image block.
Parameters
- path System.String
- alt System.String
- title System.String
public ImageBlock(String path, String alt = null, String title = null, Nullable<Double> width = null, Nullable<Double> height = null, String linkUrl = null, String linkTitle = null, String linkTarget = null, String linkRel = null) #Create an image block with optional size hints.
Parameters
- path System.String
- alt System.String = null
- title System.String = null
- width System.Nullable{System.Double} = null
- height System.Nullable{System.Double} = null
- linkUrl System.String = null
- linkTitle System.String = null
- linkTarget System.String = null
- linkRel System.String = null
Methods
Inherited Methods
public Void Accept(MarkdownVisitor visitor) #Returns:
VoidInherited from MarkdownObject
Parameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public IEnumerable<MarkdownObject> AncestorsAndSelf() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #Returns:
IEnumerable<TObject>Inherited from MarkdownObject
Type Parameters
- TObject
public IEnumerable<MarkdownObject> Descendants() #Returns:
IEnumerable<MarkdownObject>Inherited from MarkdownObject
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String LinkUrl { get; set; } #Optional hyperlink target wrapping the image.
public String LinkTitle { get; set; } #Optional hyperlink title wrapping the image.
public String LinkTarget { get; set; } #Optional hyperlink target attribute wrapping the image in HTML.
public String LinkRel { get; set; } #Optional hyperlink rel attribute wrapping the image in HTML.
public Nullable<Double> Width { get; set; } #Optional width hint (points/pixels as provided).
public Nullable<Double> Height { get; set; } #Optional height hint.
public String PictureFallbackPath { get; set; } #Optional fallback image URL used when rendering preserved picture sources back to HTML.
public IList<ImagePictureSource> PictureSources { get; } #HTML-only responsive picture source metadata preserved from imported <picture> elements.
public virtual String Caption { get; set; } #Inherited Properties
public MarkdownObject Parent { get; } #Inherited from MarkdownObject
public MarkdownDoc Document { get; } #Inherited from MarkdownObject
public MarkdownObject Root { get; } #Inherited from MarkdownObject
public Nullable<Int32> IndexInParent { get; } #Inherited from MarkdownObject
public MarkdownObject PreviousSibling { get; } #Inherited from MarkdownObject
public MarkdownObject NextSibling { get; } #Inherited from MarkdownObject
public Nullable<MarkdownSourceSpan> SourceSpan { get; set; } #Inherited from MarkdownObject
public IReadOnlyList<MarkdownObject> ChildObjects { get; } #Inherited from MarkdownObject