Printing3DColorMaterialGroup Printing3DColorMaterialGroup Printing3DColorMaterialGroup Printing3DColorMaterialGroup Class

Definition

Represents a group of color materials used in the 3D model.

public : sealed class Printing3DColorMaterialGroup : IPrinting3DColorMaterialGrouppublic sealed class Printing3DColorMaterialGroup : IPrinting3DColorMaterialGroupPublic NotInheritable Class Printing3DColorMaterialGroup Implements IPrinting3DColorMaterialGroup// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Graphics.Printing3D.Printing3DContract (introduced v1)

Remarks

The Printing3DColorMaterialGroup class corresponds to the <colorgroup> element in the 3D Manufacturing Format (3MF) specification. For more info, see the 3MF Specification.

Constructors

Printing3DColorMaterialGroup(UInt32) Printing3DColorMaterialGroup(UInt32) Printing3DColorMaterialGroup(UInt32) Printing3DColorMaterialGroup(UInt32)

Creates an instance of the Printing3DColorMaterialGroup class.

public : Printing3DColorMaterialGroup(unsigned int MaterialGroupId)public Printing3DColorMaterialGroup(UInt32 MaterialGroupId)Public Sub New(MaterialGroupId As UInt32)// You can use this method in JavaScript.
Parameters
MaterialGroupId
unsigned int UInt32 UInt32 UInt32

The identifier for the group of color materials used in the 3D model; a value greater than zero.

Remarks

Set MaterialGroupId to a value greater than zero. A value of zero is not valid and triggers an E_INVALIADARG error.

Properties

Colors Colors Colors Colors

Gets a group of color materials used in the 3D model.

public : IVector<Printing3DColorMaterial> Colors { get; }public IList<Printing3DColorMaterial> Colors { get; }Public ReadOnly Property Colors As IList<Printing3DColorMaterial>// You can use this property in JavaScript.
Value
IVector<Printing3DColorMaterial> IList<Printing3DColorMaterial> IList<Printing3DColorMaterial> IList<Printing3DColorMaterial>

A group of color materials used in the 3D model, of type Printing3DColorMaterial.

MaterialGroupId MaterialGroupId MaterialGroupId MaterialGroupId

Gets the identifier (ID) for the color material group.

public : unsigned int MaterialGroupId { get; }public uint MaterialGroupId { get; }Public ReadOnly Property MaterialGroupId As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The ID for the color material group.