Description
Set the 2D Graphics attributes type for the vehicle.
Syntax
Parameters
Example
Set a vehicle's graphics to custom intervals
[C#] | Copy Code |
---|
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesCustom))
{
graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesCustom);
IAgVeGfxAttributesCustom customAttributes = graphics.Attributes as IAgVeGfxAttributesCustom;
}
|
|
Set a vehicle's graphics to basic
[C#] | Copy Code |
---|
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesBasic))
{
graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesBasic);
IAgVeGfxAttributesBasic basicAttributes = graphics.Attributes as IAgVeGfxAttributesBasic;
}
|
|
Set a vehicle's graphics to access intervals
[C#] | Copy Code |
---|
if (graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesAccess))
{
graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesAccess);
IAgVeGfxAttributesAccess accessAttributes = graphics.Attributes as IAgVeGfxAttributesAccess;
}
|
|
Set a vehicle's graphics to custom intervals
[Visual Basic .NET] | Copy Code |
---|
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesCustom) Then graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesCustom)
Dim customAttributes As IAgVeGfxAttributesCustom = TryCast(graphics.Attributes, IAgVeGfxAttributesCustom) End If
|
|
Set a vehicle's graphics to basic
[Visual Basic .NET] | Copy Code |
---|
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesBasic) Then graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesBasic)
Dim basicAttributes As IAgVeGfxAttributesBasic = TryCast(graphics.Attributes, IAgVeGfxAttributesBasic) End If
|
|
Set a vehicle's graphics to access intervals
[Visual Basic .NET] | Copy Code |
---|
If graphics.IsAttributesTypeSupported(AgEVeGfxAttributes.eAttributesAccess) Then graphics.SetAttributesType(AgEVeGfxAttributes.eAttributesAccess)
Dim accessAttributes As IAgVeGfxAttributesAccess = TryCast(graphics.Attributes, IAgVeGfxAttributesAccess) End If
|
|
See Also