For example, you can add a button and button handler to the sample form.
At the end of the form''s constructor, you can set these properties on cell 1,1 using:
GridStyleInfo style = gridControl1[1,1];
style.Text = "SomeText";
MyCustomStyleProperties customStyle = new MyCustomStyleProperties(style);
customStyle.TheLocked = true;
customStyle.TheFont.Bold = true;
Then you can retrieve these properties in the buttonhandler using this code. The code also flips their values, so the next time you click the button, you see a different result.
private void button1_Click(object sender, System.EventArgs e)
{
MyCustomStyleProperties customStyle = new MyCustomStyleProperties(this.gridControl1[1,1]);
Console.WriteLine("{0} {1}", customStyle.TheLocked, customStyle.TheFont.Bold);
customStyle.TheLocked = !customStyle.TheLocked;
customStyle.TheFont.Bold = !customStyle.TheFont.Bold;
Console.WriteLine("");
}