←Select platform

GetDestinationRectangle(int,int,LeadRect,ControlSizeMode,ControlAlignment,ControlAlignment) Method

Summary

Utility method to adjust the given LeadRect based on source size, size mode and alignment

Syntax
C#
VB
C++
Public Shared Function GetDestinationRectangle( 
   ByVal sourceWidth As Integer, 
   ByVal sourceHeight As Integer, 
   ByVal destinationRect As LeadRect, 
   ByVal sizeMode As ControlSizeMode, 
   ByVal horizontalAlignment As ControlAlignment, 
   ByVal verticalAlignment As ControlAlignment 
) As LeadRect 

Parameters

sourceWidth

Source width

sourceHeight

Source height

destinationRect

Initial destination rectangle

sizeMode

Controls how the source size is positioned and scaled inside the destination rectangle

horizontalAlignment

Controls how the source size is aligned horizontally inside the destination rectangle

verticalAlignment

Controls how the source size is aligned vertically inside the destination rectangle

Return Value

The new destination rectangle adjusted based on the source size, size mode and alignment.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.