SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Calculates the size of the image part.
Class: ImagePartClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
protected internal new Size CalcSize( PartsRenderingClass pr, Graphics g, Rectangle rPartArea, CalcSizeEnum calc );
Protected Friend Overrides Function CalcSize( ByVal pr As PartsRenderingClass, ByVal g As Graphics, ByVal rPartArea As Rectangle, ByVal calc As CalcSizeEnum ) As Size
pr
Defines the PartsRenderingClass object.
g
Defines the drawing surface.
rPartArea
Defines the maximum available area to render the part.
calc
Defines the method to calculate the part's size.
The part's size.
Calculates the size of the image part.
If a part can adapt to its surroundings and its maximum available space (r), it should adjust the returned size to reflect the maximum available space. For example, a string as used in the TextPartClass class can wrap around. If a part is wider than the available space, it may be clipped once it is displayed.
Calculating a part's size can be CPU intensive, in which case this routine should attempt to cache values to speed up its performance. The calc parameter can be used to distinguish the reason for the call to CalcSize, which may be helpful to cache values needed to optimize performance.
See Also ImagePartClass Class | Classes | SftTree/NET 2.0