Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# FaceTemplateList.set Method

Module: FaceTemplateList

## Definition

Sets an item of the FaceTemplateList object.

Python

    set(self, index: int, face_template_item: FaceTemplate) -> None

Parameters

> `index` int
> in Index of the FaceTemplate item to set.
> `face_template_item` FaceTemplate
> in FaceTemplate item to set.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void set(int index, FaceTemplate faceTemplateItem)

Parameters

> `index` int
> in Index of the FaceTemplate item to set.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to set.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void Set(int index, FaceTemplate faceTemplateItem)

Parameters

> `index` int
> in Index of the FaceTemplate item to set.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to set.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void set(int index, FaceTemplate faceTemplateItem) throws FaceException

Parameters

> `index` int
> in Index of the FaceTemplate item to set.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to set.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func set(index: Int32, faceTemplateItem: FaceTemplate) throws

Parameters

> `index` Int32
> in Index of the FaceTemplate item to set.
> `faceTemplateItem` FaceTemplate
> in FaceTemplate item to set.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceTemplateList_Set (
        ID3_FACE_TEMPLATE_LIST hFaceTemplateList,
        int index,
        ID3_FACE_TEMPLATE hFaceTemplateItem)

Parameters

> `hFaceTemplateList` ID3_FACE_TEMPLATE_LIST
> in Handle to the FaceTemplateList object.
> `index` int
> in Index of the FaceTemplate item to set.
> `hFaceTemplateItem` ID3_FACE_TEMPLATE
> in FaceTemplate item to set.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.