NewLine

Specifies whether the block appears on a new line. This property is only applicable to CRMEntryBlock object or CRMEntryGroupBlock object in a container.

This is the same as selecting New Line in the Position property from <My Profile> | Administration | Customization | <Entity> | Blocks.

Property values
  • true (default). Specifies that the block appears on a new line.
  • false. Specifies that the block doesn't appear on a new line.
Examples

var group = CRM.Getblock("container");
var block = CRM.GetBlock("companyboxlong");
group.AddBlock(block);
var block2 = CRM.GetBlock("personboxshort");
block2.NewLine=false;
group.AddBlock(block2);
CRM.AddContent(Group.Execute());
Response.Write(CRM.GetPage());

Inserts two Entry blocks into a container side-by-side.