Class CPBlockBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
CP.Block - an object that holds and manipulates a block of html
public abstract class CPBlockBaseClass : IDisposable
- Inheritance
-
CPBlockBaseClass
- Implements
- Inherited Members
Methods
Append(string)
append the htmlString into the current Block
public abstract void Append(string htmlString)
Parameters
htmlStringstring
Clear()
Clear the contents of the current block
public abstract void Clear()
Dispose()
support IDisposable
public abstract void Dispose()
GetHtml()
return the entire html of the current block
public abstract string GetHtml()
Returns
GetInner(string)
Return the innerHtml from the current block specified by the findSelector
public abstract string GetInner(string findSelector)
Parameters
findSelectorstring
Returns
GetOuter(string)
return the outer Html specified by the findSelector
public abstract string GetOuter(string findSelector)
Parameters
findSelectorstring
Returns
ImportFile(string)
load the block with the body of a file in the wwwRoot
public abstract void ImportFile(string wwwFileName)
Parameters
wwwFileNamestring
Load(string)
Load the block with an html string
public abstract void Load(string htmlString)
Parameters
htmlStringstring
OpenCopy(string)
load the block with the contents of a record in Copy Content
public abstract void OpenCopy(string copyRecordName)
Parameters
copyRecordNamestring
OpenFile(string)
load the block with the entire contents of a file in the wwwRoot
public abstract void OpenFile(string wwwFileName)
Parameters
wwwFileNamestring
OpenLayout(string)
load the block with the contents of a record in Layouts
public abstract void OpenLayout(string layoutRecordName)
Parameters
layoutRecordNamestring
Prepend(string)
Prepend the htmlString on the current block
public abstract void Prepend(string htmlString)
Parameters
htmlStringstring
SetInner(string, string)
set the innerHtml of an element in the current block specified by the findSelector
public abstract void SetInner(string findSelector, string htmlString)
Parameters
SetOuter(string, string)
Set the OuterHtml in the current block specified by the findSelector to the htmlString
public abstract void SetOuter(string findSelector, string htmlString)