API Reference

Class

ImageBlock

Namespace OfficeIMO.Markdown
Assembly OfficeIMO.Markdown
Modifiers sealed

Image block with optional title and caption.

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

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, String plainAlt = 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
plainAlt System.String = null optionalposition: 9

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

Plain-text alternate text used for HTML rendering and text extraction.

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