Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ImageBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownBlock ICaptionable ISyntaxMarkdownBlock
Modifiers
sealed

Image block with optional title and caption.

Inheritance

Usage

Explore 2 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 2

Constructors

ImageBlock 2 overloads
public ImageBlock(string path, string? alt, string? title) #

Create an image block.

Parameters

path string required
alt string? required
title string? required
public ImageBlock(string path, string? alt = null, string? title = null, OfficeLength? width = null, OfficeLength? 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 string required
alt string? = null optional
title string? = null optional
width OfficeIMO.OfficeLength? = null optional
height OfficeIMO.OfficeLength? = null optional
linkUrl string? = null optional
linkTitle string? = null optional
linkTarget string? = null optional
linkRel string? = null optional
plainAlt string? = null optional

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 MarkdownSourceSpan? AltSourceSpan { get; } #

Source span for the image alternate-text token when parsed from markdown.

public MarkdownSourceSpan? PathSourceSpan { get; } #

Source span for the image path token when parsed from markdown.

public MarkdownSourceSpan? TitleSourceSpan { get; } #

Source span for the image title token when parsed from markdown.

public MarkdownSourceSpan? LinkUrlSourceSpan { get; } #

Source span for the wrapping link URL token when parsed from markdown.

public MarkdownSourceSpan? LinkTitleSourceSpan { get; } #

Source span for the wrapping link title token when parsed from markdown.

public string? Title { get; } #

Optional title attribute.

public OfficeLength? Width { get; set; } #

Optional physical display width. Unitless Markdown and HTML hints are CSS pixels.

public OfficeLength? Height { get; set; } #

Optional physical display height. Unitless Markdown and HTML hints are CSS pixels.

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 string? Caption { get; set; } #

Optional caption text.