PRELIMINARY INFORMATION - SUBJECT TO CHANGE
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Forces the flex layout for the current item. Must be the first FlexLayout viper method invoked.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[]
public int ForceLayout(
	 context,
	 sourceItem
)
Visual Basic (Declaration)Copy imageCopy Code
<> _
Public Function ForceLayout ( _
	context As , _
	sourceItem As  _
) As Integer

Parameters

context
IRenderContext
The context.
sourceItem
Locator
The flex layout item to be used to render the current item (use 0 to load configured layout).

Return Value

The flex layout itemnumber on success, 0 on failure.

See Also

Advanced