This example shows how to change properties from code.
private StiForm ChangeFormProperties(StiForm form)
{
	var labelCompanyName = form.GetElementByName("CompanyName") as StiLabelElement;
	labelCompanyName.Text.Expression = "My Company";
	labelCompanyName.Text.Font = new System.Drawing.Font("Arial", 20);
          
	//Save-load form just for sample
	var savedForm = form.SaveToString();

	var loadedForm = new StiForm();
	loadedForm.LoadFromString(savedForm);

	return loadedForm;
}

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.