<!--
{
  "availability" : [
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVStyleFactory/registerStyleName(_:type:inherited:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TVStyleFactory(cm)registerStyle:withType:inherited:"
  },
  "title" : "registerStyleName(_:type:inherited:)"
}
-->

# registerStyleName(_:type:inherited:)

Creates a new style property of the indicated type.

```
class func registerStyleName(_ styleName: String, type: TVViewElementStyleType, inherited: Bool)
```

## Parameters

`styleName`

The name used to identify the style.

`type`

The element style type as specified by [`TVViewElementStyleType`](/documentation/TVMLKit/TVViewElementStyleType).

`inherited`

Boolean indicating whether the style is able to be inherited by other styles.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)