NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in

Defined in: ui/styling/background-common.ts

Constructors ​

Constructor ​

ts
new Background(): Background;

Returns ​

Background

Properties ​

borderBottomColor ​

ts
borderBottomColor: Color;

Defined in: ui/styling/background-common.ts


borderBottomLeftRadius ​

ts
borderBottomLeftRadius: number;

Defined in: ui/styling/background-common.ts


borderBottomRightRadius ​

ts
borderBottomRightRadius: number;

Defined in: ui/styling/background-common.ts


borderBottomWidth ​

ts
borderBottomWidth: number;

Defined in: ui/styling/background-common.ts


borderLeftColor ​

ts
borderLeftColor: Color;

Defined in: ui/styling/background-common.ts


borderLeftWidth ​

ts
borderLeftWidth: number;

Defined in: ui/styling/background-common.ts


borderRightColor ​

ts
borderRightColor: Color;

Defined in: ui/styling/background-common.ts


borderRightWidth ​

ts
borderRightWidth: number;

Defined in: ui/styling/background-common.ts


borderTopColor ​

ts
borderTopColor: Color;

Defined in: ui/styling/background-common.ts


borderTopLeftRadius ​

ts
borderTopLeftRadius: number;

Defined in: ui/styling/background-common.ts


borderTopRightRadius ​

ts
borderTopRightRadius: number;

Defined in: ui/styling/background-common.ts


borderTopWidth ​

ts
borderTopWidth: number;

Defined in: ui/styling/background-common.ts


boxShadows ​

ts
boxShadows: BoxShadow[];

Defined in: ui/styling/background-common.ts


clearFlags ​

ts
clearFlags: number;

Defined in: ui/styling/background-common.ts


clipPath ​

ts
clipPath: string | ClipPathFunction;

Defined in: ui/styling/background-common.ts


color ​

ts
color: Color;

Defined in: ui/styling/background-common.ts


cornerShape ​

ts
cornerShape: CornerShapeType;

Defined in: ui/styling/background-common.ts


image ​

ts
image: string | LinearGradient;

Defined in: ui/styling/background-common.ts


position ​

ts
position: string;

Defined in: ui/styling/background-common.ts


repeat ​

ts
repeat: BackgroundRepeatType;

Defined in: ui/styling/background-common.ts


size ​

ts
size: string;

Defined in: ui/styling/background-common.ts


default ​

ts
static default: Background;

Defined in: ui/styling/background-common.ts

Methods ​

getBoxShadows() ​

ts
getBoxShadows(): BoxShadow[];

Defined in: ui/styling/background-common.ts

Returns ​

BoxShadow[]


getUniformBorderColor() ​

ts
getUniformBorderColor(): Color;

Defined in: ui/styling/background-common.ts

Returns ​

Color


getUniformBorderRadius() ​

ts
getUniformBorderRadius(): number;

Defined in: ui/styling/background-common.ts

Returns ​

number


getUniformBorderWidth() ​

ts
getUniformBorderWidth(): number;

Defined in: ui/styling/background-common.ts

Returns ​

number


hasBorder() ​

ts
hasBorder(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasBorderColor() ​

ts
hasBorderColor(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasBorderRadius() ​

ts
hasBorderRadius(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasBorderWidth() ​

ts
hasBorderWidth(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasBoxShadows() ​

ts
hasBoxShadows(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasUniformBorder() ​

ts
hasUniformBorder(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasUniformBorderColor() ​

ts
hasUniformBorderColor(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasUniformBorderRadius() ​

ts
hasUniformBorderRadius(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


hasUniformBorderWidth() ​

ts
hasUniformBorderWidth(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


isEmpty() ​

ts
isEmpty(): boolean;

Defined in: ui/styling/background-common.ts

Returns ​

boolean


toString() ​

ts
toString(): string;

Defined in: ui/styling/background-common.ts

Returns ​

string


withBorderBottomColor() ​

ts
withBorderBottomColor(value: Color): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueColor

Returns ​

Background


withBorderBottomLeftRadius() ​

ts
withBorderBottomLeftRadius(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderBottomRightRadius() ​

ts
withBorderBottomRightRadius(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderBottomWidth() ​

ts
withBorderBottomWidth(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderLeftColor() ​

ts
withBorderLeftColor(value: Color): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueColor

Returns ​

Background


withBorderLeftWidth() ​

ts
withBorderLeftWidth(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderRightColor() ​

ts
withBorderRightColor(value: Color): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueColor

Returns ​

Background


withBorderRightWidth() ​

ts
withBorderRightWidth(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderTopColor() ​

ts
withBorderTopColor(value: Color): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueColor

Returns ​

Background


withBorderTopLeftRadius() ​

ts
withBorderTopLeftRadius(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderTopRightRadius() ​

ts
withBorderTopRightRadius(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBorderTopWidth() ​

ts
withBorderTopWidth(value: number): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuenumber

Returns ​

Background


withBoxShadows() ​

ts
withBoxShadows(value: BoxShadow[]): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueBoxShadow[]

Returns ​

Background


withClipPath() ​

ts
withClipPath(value: string | ClipPathFunction): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuestring | ClipPathFunction

Returns ​

Background


withColor() ​

ts
withColor(value: Color): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueColor

Returns ​

Background


withCornerShape() ​

ts
withCornerShape(value: CornerShapeType): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueCornerShapeType

Returns ​

Background


withImage() ​

ts
withImage(value: string | LinearGradient): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuestring | LinearGradient

Returns ​

Background


withPosition() ​

ts
withPosition(value: string): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuestring

Returns ​

Background


withRepeat() ​

ts
withRepeat(value: BackgroundRepeatType): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valueBackgroundRepeatType

Returns ​

Background


withSize() ​

ts
withSize(value: string): Background;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
valuestring

Returns ​

Background


equals() ​

ts
static equals(value1: Background, value2: Background): boolean;

Defined in: ui/styling/background-common.ts

Parameters ​

ParameterType
value1Background
value2Background

Returns ​

boolean