Table of Contents

Method AsContentControl

Namespace
DocWright.Dom.ContentControls
Assembly
DocWright.Dom.dll

AsContentControl(SdtBlock)

Returns a typed view over a block-level structured document tag.

public static ContentControl AsContentControl(this SdtBlock sdt)

Parameters

sdt SdtBlock

The tag.

Returns

ContentControl

The typed view.

Exceptions

ArgumentNullException

sdt is null.

AsContentControl(SdtInline)

Returns a typed view over an inline-level structured document tag.

public static ContentControl AsContentControl(this SdtInline sdt)

Parameters

sdt SdtInline

The tag.

Returns

ContentControl

The typed view.

Exceptions

ArgumentNullException

sdt is null.