|
PropertyGridExtensionsAdjustCommentAreaHeight Method
|
Adjusts a property grid's comment area height
Namespace: GSF.Windows.FormsAssembly: GSF.Windows (in GSF.Windows.dll) Version: 2.4.230-beta
Syntaxpublic static void AdjustCommentAreaHeight(
this PropertyGrid grid,
int lines
)
<ExtensionAttribute>
Public Shared Sub AdjustCommentAreaHeight (
grid As PropertyGrid,
lines As Integer
)
public:
[ExtensionAttribute]
static void AdjustCommentAreaHeight(
PropertyGrid^ grid,
int lines
)
[<ExtensionAttribute>]
static member AdjustCommentAreaHeight :
grid : PropertyGrid *
lines : int -> unit
GSF.Windows.Forms.PropertyGridExtensions.AdjustCommentAreaHeight = function(grid, lines);
View SourceParameters
- grid PropertyGrid
- Property grid to adjust
- lines Int32
- Number of lines to display in comment area
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PropertyGrid. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This function only has an effect on property grids when their Visible property is set to True. To use
this on an initially hidden property grid - set the property grid's Visible property to True at design
time, call this function during form load, then set the Visible property to False.
This function was written to work with the .NET 2.0 PropertyGrid control. Note that reflection is used
to set private properties of the property grid and as a result this function may not work with future
versions of the .NET property grid.
See Also