OfficeIMO

API Reference

Class

ImageBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Image block with optional title and caption.

Inheritance

Constructors

ImageBlock 2 overloads
public ImageBlock(String path, String alt, String title) #

Create an image block.

Parameters

path System.String requiredposition: 0
alt System.String requiredposition: 1
title System.String requiredposition: 2
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 requiredposition: 0
alt System.String = null optionalposition: 1
title System.String = null optionalposition: 2
width System.Nullable{System.Double} = null optionalposition: 3
height System.Nullable{System.Double} = null optionalposition: 4
linkUrl System.String = null optionalposition: 5
linkTitle System.String = null optionalposition: 6
linkTarget System.String = null optionalposition: 7
linkRel System.String = null optionalposition: 8

Methods

OfficeIMO#Markdown#IMarkdownBlock#RenderHtml() #
OfficeIMO#Markdown#IMarkdownBlock#RenderMarkdown() #

Properties

public String Path { get; } #

Image source path or URL.

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 String Alt { get; } #

Alternative text.

public String Title { get; } #

Optional title attribute.

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; } #