API Reference > imodeljs-backend > ViewDefinitions > DisplayStyle2d > insert insert MethodStatic Insert a DisplayStyle2d for use by a ViewDefinition. insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String throws IModelError if unable to insert the element. Parameter Type Description iModelDb IModelDb Insert into this iModel definitionModelId Id64String Insert the new DisplayStyle2d into this DefinitionModel name string The name of the DisplayStyle2d Returns - Id64String The Id of the newly inserted DisplayStyle2d element. Defined in core/backend/src/ViewDefinition.ts Line 166 Last Updated: 13 June, 2024