Heureka API .NET Documentation
TryConvertFromExternalToInternalTreeType(Int32,TreeType) Method



Value: 0 = dead tree, 1 = tree, 2 = overstorey tree, 3 = main sapling, 4 = secondary sapling
The converted tree type
Converts the Int32 representation of a tree type from the external format to the internal format. A return value indicates whether the operation succeeded.
Syntax
'Declaration
 
Public Overloads Shared Function TryConvertFromExternalToInternalTreeType( _
   ByVal value As Integer, _
   ByRef treeType As TreeType _
) As Boolean
'Usage
 
Dim value As Integer
Dim treeType As TreeType
Dim value As Boolean
 
value = Tree.TryConvertFromExternalToInternalTreeType(value, treeType)
public static bool TryConvertFromExternalToInternalTreeType( 
   int value,
   out TreeType treeType
)
public:
static bool TryConvertFromExternalToInternalTreeType( 
   int value,
   [Out] TreeType treeType
) 

Parameters

value
Value: 0 = dead tree, 1 = tree, 2 = overstorey tree, 3 = main sapling, 4 = secondary sapling
treeType
The converted tree type

Return Value

True if the conversion was successful
Requirements

Target Platforms: Windows 7, 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

Reference

Tree Class
Tree Members
Overload List

Send Feedback