Search Results for

    Show / Hide Table of Contents

    Class WikiHtmlTransformator

    Translates wiki text parts in to a list of real and fake web parts

    Inheritance
    System.Object
    BaseTransform
    WikiHtmlTransformator
    Inherited Members
    BaseTransform.RegisteredLogObservers
    BaseTransform.RegisterObserver(ILogObserver)
    BaseTransform.FlushObservers()
    BaseTransform.FlushSpecificObserver<T>()
    BaseTransform.LogError(String, String, Exception, Boolean, Boolean)
    BaseTransform.LogInfo(String, String, LogEntrySignificance)
    BaseTransform.LogWarning(String, String)
    BaseTransform.LogDebug(String, String)
    BaseTransform.Log(LogEntry, LogLevel)
    BaseTransform.SetPageId(String)
    BaseTransform.GetExactVersion(ClientRuntimeContext)
    BaseTransform.GetVersion(ClientRuntimeContext)
    Namespace: PnP.Framework.Modernization.Transform
    Assembly: PnP.Framework.dll
    Syntax
    public class WikiHtmlTransformator : BaseTransform

    Constructors

    WikiHtmlTransformator(ClientContext, ClientContext, IPage, BaseTransformationInformation, IList<ILogObserver>)

    Default constructor

    Declaration
    public WikiHtmlTransformator(ClientContext sourceContext, ClientContext targetContext, IPage page, BaseTransformationInformation basePageTransformationInformation, IList<ILogObserver> logObservers = null)
    Parameters
    ClientContext sourceContext

    ClientContext targetContext

    PnP.Core.Model.SharePoint.IPage page

    BaseTransformationInformation basePageTransformationInformation

    IList<ILogObserver> logObservers

    Methods

    TransformPlusSplit(List<WebPartEntity>, Boolean, Boolean)

    Replaces embedded images and iframes with respective "fake" image and video web parts. Depending on the image/iframe position in the html the wiki text is broken up in multiple wiki text parts intermixed with image and/or video parts. Later on these web parts will be transformed to client side web parts

    Declaration
    public List<WebPartEntity> TransformPlusSplit(List<WebPartEntity> wikiPageWebParts, bool handleWikiImagesAndVideos, bool addTableListImageAsImageWebPart)
    Parameters
    List<WebPartEntity> wikiPageWebParts

    List of web parts on the page

    System.Boolean handleWikiImagesAndVideos

    If true images and videos embedded in wiki text will be transformed to actual image/video web parts, else they'll get a placeholder and will be added as separate web parts at the end of the page

    System.Boolean addTableListImageAsImageWebPart

    When an image lives inside a table (or list) then also add it as a separate image web part

    Returns
    List<WebPartEntity>

    Updated list of web parts

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer