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
sdtSdtBlockThe tag.
Returns
- ContentControl
The typed view.
Exceptions
- ArgumentNullException
sdtis null.
AsContentControl(SdtInline)
Returns a typed view over an inline-level structured document tag.
public static ContentControl AsContentControl(this SdtInline sdt)
Parameters
sdtSdtInlineThe tag.
Returns
- ContentControl
The typed view.
Exceptions
- ArgumentNullException
sdtis null.