AddLabelToGroupBox
(
DynamicFilterParameters oDynamicFilterParameters,
GroupBox oGroupBox,
Int32 iX,
Int32 iY
)
{
Debug.Assert(oGroupBox != null);
Debug.Assert(oDynamicFilterParameters != null);
AssertValid();
Label oLabel = new Label();
oLabel.Text = oDynamicFilterParameters.ColumnName + ":";
oLabel.Location = new Point(iX, iY);
oLabel.Margin = Padding.Empty;
oLabel.AutoEllipsis = true;
// The actual size of the Label will get set by the caller.
oLabel.AutoSize = false;
oGroupBox.Controls.Add(oLabel);
return (oLabel);
}