---
title: TVViewElementStyle
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvviewelementstyle
---

# TVViewElementStyle

A style applied to a view element.

## Declaration

```swift
class TVViewElementStyle
```

## Topics

### Retrieving the Style for an Element

- [value(propertyName:)](tvmlkit/tvviewelementstyle/value(propertyname:).md)

### Defining the Height and Width of an Element

- [height](tvmlkit/tvviewelementstyle/height.md)
- [maxHeight](tvmlkit/tvviewelementstyle/maxheight.md)
- [maxWidth](tvmlkit/tvviewelementstyle/maxwidth.md)
- [minHeight](tvmlkit/tvviewelementstyle/minheight.md)
- [minWidth](tvmlkit/tvviewelementstyle/minwidth.md)
- [width](tvmlkit/tvviewelementstyle/width.md)

### Aligning and Positioning an Element

- [alignment](tvmlkit/tvviewelementstyle/alignment.md)
- [TVElementAlignment](tvmlkit/tvelementalignment.md)
- [contentAlignment](tvmlkit/tvviewelementstyle/contentalignment.md)
- [TVElementContentAlignment](tvmlkit/tvelementcontentalignment.md)
- [focusMargin](tvmlkit/tvviewelementstyle/focusmargin.md)
- [interitemSpacing](tvmlkit/tvviewelementstyle/interitemspacing.md)
- [margin](tvmlkit/tvviewelementstyle/margin.md)
- [padding](tvmlkit/tvviewelementstyle/padding.md)
- [position](tvmlkit/tvviewelementstyle/position.md)
- [TVElementPosition](tvmlkit/tvelementposition.md)

### Changing the Text of an Element

- [fontSize](tvmlkit/tvviewelementstyle/fontsize.md)
- [fontWeight](tvmlkit/tvviewelementstyle/fontweight.md)
- [maxTextLines](tvmlkit/tvviewelementstyle/maxtextlines.md)
- [textAlignment](tvmlkit/tvviewelementstyle/textalignment.md)
- [textHighlightStyle](tvmlkit/tvviewelementstyle/texthighlightstyle.md)
- [textMinimumScaleFactor](tvmlkit/tvviewelementstyle/textminimumscalefactor.md)
- [textStyle](tvmlkit/tvviewelementstyle/textstyle.md)

### Modifying an Image

- [imageTreatmentName](tvmlkit/tvviewelementstyle/imagetreatmentname.md)
- [ratingStyle](tvmlkit/tvviewelementstyle/ratingstyle.md)

### Coloring an Element

- [backgroundColor](tvmlkit/tvviewelementstyle/backgroundcolor.md)
- [color](tvmlkit/tvviewelementstyle/color.md)
- [highlightColor](tvmlkit/tvviewelementstyle/highlightcolor.md)
- [tintColor](tvmlkit/tvviewelementstyle/tintcolor.md)

### Element Styles

- [Transition Style Values](tvmlkit/transition-style-values.md)
- [Rating Style Values](tvmlkit/rating-style-values.md)
- [Label State Values](tvmlkit/label-state-values.md)
- [Text Style Values](tvmlkit/text-style-values.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom Styles

- [TVStyleFactory](tvmlkit/tvstylefactory.md)
- [TVColor](tvmlkit/tvcolor.md)
