Skip to main content Skip to complementary content

Adding and placing objects on a sheet

You can add Qlik Sense objects to a sheet and then place it, or set its position, on the sheet.

Adding Qlik Sense objects

This example shows how to create and place two Qlik Sense objects on the sheet. The objects are automatically placed on the sheet by the Qlik Sense .NET SDK.

Example: Create two Qlik Sense objects to the sheet

	var text1 = sheet.CreateTextImage("MyAutoPlacedText1", new TextImageProperties { Title = "Auto placed Text1", Markdown = "Text1" });
	 var text2 = sheet.CreateTextImage("MyAutoPlacedText2", new TextImageProperties { Title = "Auto placed Text2", Markdown = "Text2" });

Placing and sizing Qlik Sense objects

These examples show how to set the position of an existing Qlik Sense object and how to size it. You can also do a combination of the two by setting the bounds of the Qlik Sense object.

Example: Set the position of a Qlik Sense object

			using (sheet.SuspendedLayout)
			{
				var text1Cell = sheet.CellFor(text1);
				text1Cell.SetPosition(1, 1);
			}

Example: Set the size of a Qlik Sense object

			using (sheet.SuspendedLayout)
			{
				var text2Cell = sheet.CellFor(text2);
				text2Cell.SetSize(2, 2);
			}

Example: Set the bounds of a Qlik Sense object

			using (sheet.SuspendedLayout)
			{
				var text1Cell = sheet.CellFor(text1);
				text1Cell.SetBounds(1, 1, 2, 2);
			}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!