# OHOS::Style - [Overview](#section1036123221165635) - [Summary](#section2120768408165635) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Defines the basic attributes and functions of a style. You can use this class to set different styles. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions

Function

Description

Style ()

A constructor used to create a Style instance.

~Style ()

virtual

A destructor used to delete the Style instance.

SetStyle (uint8_t key, int64_t value)

void

Sets a style.

GetStyle (uint8_t key) const

int64_t

Obtains the value of a style.

operator new (size_t size)

void *

Overrides the new function.

operator delete (void *p)

void

Overrides the delete function.