Files
NativeScript/tns-core-modules/text/span.d.ts
Hristo Deshev 629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00

54 lines
1.2 KiB
TypeScript

import { Color } from "../color";
import { ViewBase } from "../ui/core/view-base";
import { FontStyle, FontWeight } from "../ui/styling/font";
import { TextDecoration } from "../ui/text-base";
/**
* A class used to create a single part of formatted string with a common text properties.
*/
export class Span extends ViewBase {
/**
* Gets or sets the font family of the span.
*/
public fontFamily: string;
/**
* Gets or sets the font size of the span.
*/
public fontSize: number;
/**
* Gets or sets the font style of the span.
*/
public fontStyle: FontStyle;
/**
* Gets or sets the font weight of the span.
*/
public fontWeight: FontWeight;
/**
* Gets or sets text decorations for the span.
*/
public textDecoration: TextDecoration;
/**
* Gets or sets the font foreground color of the span.
*/
public color: Color;
/**
* Gets or sets the font background color of the span.
*/
public backgroundColor: Color;
/**
* Gets or sets the text for the span.
*/
public text: string;
//@private
_setTextInternal(value: string): void;
//@endprivate
}