Version

GetSmartPositions Method (ISmartPlaceable)

Gets an array of valid positions for the current object. Objects can individually place restrictions on where they can be placed, although in reality it's more likely that they'll just return a static array. The order of the valid positions has some significance, in that although the placer will choose the best overall position, it will stop searching as soon as it finds an ideal one. The upshot of all of this is that you should return an array sorted in order of preferred placement.
Syntax
'Declaration
 
Function GetSmartPositions() As SmartPosition()
SmartPosition[] GetSmartPositions()

Return Value

Array of valid smart positions for the current object.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also