Applies chrome type to the templated Web part chrome. Part has to contain <#body#>, <#header#> and <#border#> tags so we could distinguish the elements in the templates.

Namespace: MonoSoftware.MonoX
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
protected StringBuilder ApplyChromeType(
	string template,
	WebPart webPart
)
Visual Basic
Protected Function ApplyChromeType ( 
	template As String,
	webPart As WebPart
) As StringBuilder
Visual C++
protected:
StringBuilder^ ApplyChromeType(
	String^ template, 
	WebPart^ webPart
)
F#
member ApplyChromeType : 
        template : string * 
        webPart : WebPart -> StringBuilder 

Parameters

template
Type: System..::..String
Template string
webPart
Type: System.Web.UI.WebControls.WebParts..::..WebPart
Web part

Return Value

Type: StringBuilder
Template with the uneccessary elemts stripped out

See Also