# IStyle

> This interface provides access to a VisualElement inline style data.

## Definition

* **Type:** Interface
* **Namespace:** [UnityEngine.UIElements](/engine/6000.5/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public interface IStyle
```

## Remarks

Reading properties from this object will read from the inline style data for this element. To read the style data computed for the element use [IStyle](/engine/6000.5/script-reference/unityengine/uielements/istyle.md) interface. Writing to a property will mask the value coming from USS with the provided value however other properties will still match the values from USS.

## Properties

| Property                                                                                                                        | Description                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [alignContent](/engine/6000.5/script-reference/unityengine/uielements/istyle/aligncontent.md)                                   | Alignment of the whole area of children on the cross axis if they span over multiple lines in this container.                                                                              |
| [alignItems](/engine/6000.5/script-reference/unityengine/uielements/istyle/alignitems.md)                                       | Alignment of children on the cross axis of this container.                                                                                                                                 |
| [alignSelf](/engine/6000.5/script-reference/unityengine/uielements/istyle/alignself.md)                                         | Similar to align-items, but only for this specific element.                                                                                                                                |
| [aspectRatio](/engine/6000.5/script-reference/unityengine/uielements/istyle/aspectratio.md)                                     | Sets a preferred aspect ratio for the box, which will be used in the calculation of auto sizes and some other layout functions.                                                            |
| [backgroundColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundcolor.md)                             | Background color to paint in the element's box.                                                                                                                                            |
| [backgroundImage](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundimage.md)                             | Background image to paint in the element's box.                                                                                                                                            |
| [backgroundPositionX](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundpositionx.md)                     | Background image x position value.                                                                                                                                                         |
| [backgroundPositionY](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundpositiony.md)                     | Background image y position value.                                                                                                                                                         |
| [backgroundRepeat](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundrepeat.md)                           | Background image repeat value.                                                                                                                                                             |
| [backgroundSize](/engine/6000.5/script-reference/unityengine/uielements/istyle/backgroundsize.md)                               | Background image size value. Transitions are fully supported only when using size in pixels or percentages, such as pixel-to-pixel or percentage-to-percentage transitions.                |
| [borderBottomColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderbottomcolor.md)                         | Color of the element's bottom border.                                                                                                                                                      |
| [borderBottomLeftRadius](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderbottomleftradius.md)               | The radius of the bottom-left corner when a rounded rectangle is drawn in the element's box.                                                                                               |
| [borderBottomRightRadius](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderbottomrightradius.md)             | The radius of the bottom-right corner when a rounded rectangle is drawn in the element's box.                                                                                              |
| [borderBottomWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderbottomwidth.md)                         | Space reserved for the bottom edge of the border during the layout phase.                                                                                                                  |
| [borderLeftColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderleftcolor.md)                             | Color of the element's left border.                                                                                                                                                        |
| [borderLeftWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderleftwidth.md)                             | Space reserved for the left edge of the border during the layout phase.                                                                                                                    |
| [borderRightColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderrightcolor.md)                           | Color of the element's right border.                                                                                                                                                       |
| [borderRightWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/borderrightwidth.md)                           | Space reserved for the right edge of the border during the layout phase.                                                                                                                   |
| [borderTopColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/bordertopcolor.md)                               | Color of the element's top border.                                                                                                                                                         |
| [borderTopLeftRadius](/engine/6000.5/script-reference/unityengine/uielements/istyle/bordertopleftradius.md)                     | The radius of the top-left corner when a rounded rectangle is drawn in the element's box.                                                                                                  |
| [borderTopRightRadius](/engine/6000.5/script-reference/unityengine/uielements/istyle/bordertoprightradius.md)                   | The radius of the top-right corner when a rounded rectangle is drawn in the element's box.                                                                                                 |
| [borderTopWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/bordertopwidth.md)                               | Space reserved for the top edge of the border during the layout phase.                                                                                                                     |
| [bottom](/engine/6000.5/script-reference/unityengine/uielements/istyle/bottom.md)                                               | Bottom distance from the element's box during layout.                                                                                                                                      |
| [color](/engine/6000.5/script-reference/unityengine/uielements/istyle/color.md)                                                 | Color to use when drawing the text of an element.                                                                                                                                          |
| [cursor](/engine/6000.5/script-reference/unityengine/uielements/istyle/cursor.md)                                               | Mouse cursor to display when the mouse pointer is over an element.                                                                                                                         |
| [display](/engine/6000.5/script-reference/unityengine/uielements/istyle/display.md)                                             | Defines how an element is displayed in the layout.                                                                                                                                         |
| [filter](/engine/6000.5/script-reference/unityengine/uielements/istyle/filter.md)                                               | Filter effects to apply to the element.                                                                                                                                                    |
| [flexBasis](/engine/6000.5/script-reference/unityengine/uielements/istyle/flexbasis.md)                                         | Initial main size of a flex item, on the main flex axis. The final layout might be smaller or larger, according to the flex shrinking and growing determined by the other flex properties. |
| [flexDirection](/engine/6000.5/script-reference/unityengine/uielements/istyle/flexdirection.md)                                 | Direction of the main axis to layout children in a container.                                                                                                                              |
| [flexGrow](/engine/6000.5/script-reference/unityengine/uielements/istyle/flexgrow.md)                                           | Specifies how the item will grow relative to the rest of the flexible items inside the same container.                                                                                     |
| [flexShrink](/engine/6000.5/script-reference/unityengine/uielements/istyle/flexshrink.md)                                       | Specifies how the item will shrink relative to the rest of the flexible items inside the same container.                                                                                   |
| [flexWrap](/engine/6000.5/script-reference/unityengine/uielements/istyle/flexwrap.md)                                           | Placement of children over multiple lines if not enough space is available in this container.                                                                                              |
| [fontSize](/engine/6000.5/script-reference/unityengine/uielements/istyle/fontsize.md)                                           | Font size to draw the element's text, specified in point size.                                                                                                                             |
| [height](/engine/6000.5/script-reference/unityengine/uielements/istyle/height.md)                                               | Fixed height of an element for the layout.                                                                                                                                                 |
| [justifyContent](/engine/6000.5/script-reference/unityengine/uielements/istyle/justifycontent.md)                               | Justification of children on the main axis of this container.                                                                                                                              |
| [left](/engine/6000.5/script-reference/unityengine/uielements/istyle/left.md)                                                   | Left distance from the element's box during layout.                                                                                                                                        |
| [letterSpacing](/engine/6000.5/script-reference/unityengine/uielements/istyle/letterspacing.md)                                 | Increases or decreases the space between characters.                                                                                                                                       |
| [marginBottom](/engine/6000.5/script-reference/unityengine/uielements/istyle/marginbottom.md)                                   | Space reserved for the bottom edge of the margin during the layout phase.                                                                                                                  |
| [marginLeft](/engine/6000.5/script-reference/unityengine/uielements/istyle/marginleft.md)                                       | Space reserved for the left edge of the margin during the layout phase.                                                                                                                    |
| [marginRight](/engine/6000.5/script-reference/unityengine/uielements/istyle/marginright.md)                                     | Space reserved for the right edge of the margin during the layout phase.                                                                                                                   |
| [marginTop](/engine/6000.5/script-reference/unityengine/uielements/istyle/margintop.md)                                         | Space reserved for the top edge of the margin during the layout phase.                                                                                                                     |
| [maxHeight](/engine/6000.5/script-reference/unityengine/uielements/istyle/maxheight.md)                                         | Maximum height for an element, when it is flexible or measures its own size.                                                                                                               |
| [maxWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/maxwidth.md)                                           | Maximum width for an element, when it is flexible or measures its own size.                                                                                                                |
| [minHeight](/engine/6000.5/script-reference/unityengine/uielements/istyle/minheight.md)                                         | Minimum height for an element, when it is flexible or measures its own size.                                                                                                               |
| [minWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/minwidth.md)                                           | Minimum width for an element, when it is flexible or measures its own size.                                                                                                                |
| [opacity](/engine/6000.5/script-reference/unityengine/uielements/istyle/opacity.md)                                             | Specifies the transparency of an element and of its children.                                                                                                                              |
| [overflow](/engine/6000.5/script-reference/unityengine/uielements/istyle/overflow.md)                                           | How a container behaves if its content overflows its own box.                                                                                                                              |
| [paddingBottom](/engine/6000.5/script-reference/unityengine/uielements/istyle/paddingbottom.md)                                 | Space reserved for the bottom edge of the padding during the layout phase.                                                                                                                 |
| [paddingLeft](/engine/6000.5/script-reference/unityengine/uielements/istyle/paddingleft.md)                                     | Space reserved for the left edge of the padding during the layout phase.                                                                                                                   |
| [paddingRight](/engine/6000.5/script-reference/unityengine/uielements/istyle/paddingright.md)                                   | Space reserved for the right edge of the padding during the layout phase.                                                                                                                  |
| [paddingTop](/engine/6000.5/script-reference/unityengine/uielements/istyle/paddingtop.md)                                       | Space reserved for the top edge of the padding during the layout phase.                                                                                                                    |
| [position](/engine/6000.5/script-reference/unityengine/uielements/istyle/position.md)                                           | Element's positioning in its parent container.                                                                                                                                             |
| [right](/engine/6000.5/script-reference/unityengine/uielements/istyle/right.md)                                                 | Right distance from the element's box during layout.                                                                                                                                       |
| [rotate](/engine/6000.5/script-reference/unityengine/uielements/istyle/rotate.md)                                               | A rotation transformation.                                                                                                                                                                 |
| [scale](/engine/6000.5/script-reference/unityengine/uielements/istyle/scale.md)                                                 | A scaling transformation.                                                                                                                                                                  |
| [textOverflow](/engine/6000.5/script-reference/unityengine/uielements/istyle/textoverflow.md)                                   | The element's text overflow mode.                                                                                                                                                          |
| [textShadow](/engine/6000.5/script-reference/unityengine/uielements/istyle/textshadow.md)                                       | Drop shadow of the text.                                                                                                                                                                   |
| [top](/engine/6000.5/script-reference/unityengine/uielements/istyle/top.md)                                                     | Top distance from the element's box during layout.                                                                                                                                         |
| [transformOrigin](/engine/6000.5/script-reference/unityengine/uielements/istyle/transformorigin.md)                             | The transformation origin is the point around which a transformation is applied.                                                                                                           |
| [transitionDelay](/engine/6000.5/script-reference/unityengine/uielements/istyle/transitiondelay.md)                             | Duration to wait before starting a property's transition effect when its value changes.                                                                                                    |
| [transitionDuration](/engine/6000.5/script-reference/unityengine/uielements/istyle/transitionduration.md)                       | Time a transition animation should take to complete.                                                                                                                                       |
| [transitionProperty](/engine/6000.5/script-reference/unityengine/uielements/istyle/transitionproperty.md)                       | Properties to which a transition effect should be applied.                                                                                                                                 |
| [transitionTimingFunction](/engine/6000.5/script-reference/unityengine/uielements/istyle/transitiontimingfunction.md)           | Determines how intermediate values are calculated for properties modified by a transition effect.                                                                                          |
| [translate](/engine/6000.5/script-reference/unityengine/uielements/istyle/translate.md)                                         | A translate transformation.                                                                                                                                                                |
| [unityBackgroundImageTintColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitybackgroundimagetintcolor.md) | Tinting color for the element's backgroundImage.                                                                                                                                           |
| [unityEditorTextRenderingMode](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityeditortextrenderingmode.md)   | TextElement editor rendering mode.                                                                                                                                                         |
| [unityFont](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityfont.md)                                         | Font to draw the element's text, defined as a Font object.                                                                                                                                 |
| [unityFontDefinition](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityfontdefinition.md)                     | Font to draw the element's text, defined as a FontDefinition structure. It takes precedence over `-unity-font`.                                                                            |
| [unityFontStyleAndWeight](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityfontstyleandweight.md)             | Font style and weight (normal, bold, italic) to draw the element's text.                                                                                                                   |
| [unityMaterial](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitymaterial.md)                                 | Custom material to use on the element.                                                                                                                                                     |
| [unityOverflowClipBox](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityoverflowclipbox.md)                   | Specifies which box the element content is clipped against.                                                                                                                                |
| [unityParagraphSpacing](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityparagraphspacing.md)                 | Increases or decreases the space between paragraphs.                                                                                                                                       |
| [unitySliceBottom](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityslicebottom.md)                           | Size of the 9-slice's bottom edge when painting an element's background image.                                                                                                             |
| [unitySliceLeft](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitysliceleft.md)                               | Size of the 9-slice's left edge when painting an element's background image.                                                                                                               |
| [unitySliceRight](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitysliceright.md)                             | Size of the 9-slice's right edge when painting an element's background image.                                                                                                              |
| [unitySliceScale](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityslicescale.md)                             | Scale applied to an element's slices.                                                                                                                                                      |
| [unitySliceTop](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityslicetop.md)                                 | Size of the 9-slice's top edge when painting an element's background image.                                                                                                                |
| [unitySliceType](/engine/6000.5/script-reference/unityengine/uielements/istyle/unityslicetype.md)                               | Specifies the type of sclicing.                                                                                                                                                            |
| [unityTextAlign](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextalign.md)                               | Horizontal and vertical text alignment in the element's box.                                                                                                                               |
| [unityTextAutoSize](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextautosize.md)                         | Overrides any explicit font-size to scale text within the defined minimum and maximum bounds, recalculating as needed to fit its container.                                                |
| [unityTextGenerator](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextgenerator.md)                       | Switches between Unity's standard and advanced text generator                                                                                                                              |
| [unityTextOutlineColor](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextoutlinecolor.md)                 | Outline color of the text.                                                                                                                                                                 |
| [unityTextOutlineWidth](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextoutlinewidth.md)                 | Outline width of the text.                                                                                                                                                                 |
| [unityTextOverflowPosition](/engine/6000.5/script-reference/unityengine/uielements/istyle/unitytextoverflowposition.md)         | The element's text overflow position.                                                                                                                                                      |
| [visibility](/engine/6000.5/script-reference/unityengine/uielements/istyle/visibility.md)                                       | Specifies whether or not an element is visible.                                                                                                                                            |
| [whiteSpace](/engine/6000.5/script-reference/unityengine/uielements/istyle/whitespace.md)                                       | Word wrap over multiple lines if not enough space is available to draw the text of an element.                                                                                             |
| [width](/engine/6000.5/script-reference/unityengine/uielements/istyle/width.md)                                                 | Fixed width of an element for the layout.                                                                                                                                                  |
| [wordSpacing](/engine/6000.5/script-reference/unityengine/uielements/istyle/wordspacing.md)                                     | Increases or decreases the space between words.                                                                                                                                            |

## Methods

| Method                                                                          | Description                                    |
| ------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Clear](/engine/6000.5/script-reference/unityengine/uielements/istyle/clear.md) | Clears inline style properties of the element. |
