Class TextMediaFormat

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.dll

Represents a text media format. This class cannot be inherited.

C#
Copy
public sealed class TextMediaFormat : MediaFormat
Inheritance
object
TextMediaFormat

Constructors

View Source

TextMediaFormat(MediaFormatTextMimeType, MediaFormatTextType)

Initializes a new instance of the TextMediaFormat class with the specified mime type and text type.

Declaration
C#
Copy
public TextMediaFormat(MediaFormatTextMimeType mimeType, MediaFormatTextType textType)
Parameters
Type Name Description
MediaFormatTextMimeType mimeType

The mime type of the format.

MediaFormatTextType textType

The text type of the format.

Exceptions
Type Condition
System.ArgumentException

mimeType or textType is invalid (i.e. undefined value).

Properties

View Source

MimeType

Gets the mime type of the current format.

Declaration
C#
Copy
public MediaFormatTextMimeType MimeType { get; }
Property Value
Type Description
MediaFormatTextMimeType
View Source

TextType

Gets the text type of the current format.

Declaration
C#
Copy
public MediaFormatTextType TextType { get; }
Property Value
Type Description
MediaFormatTextType

Methods

View Source

Equals(object)

Compares an object to an instance of TextMediaFormat for equality.

Declaration
C#
Copy
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

A object to compare.

Returns
Type Description
bool

true if the formats are equal; otherwise, false.

Overrides
object.Equals(object)
View Source

GetHashCode()

Gets the hash code for this instance of TextMediaFormat.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
int

The hash code for this instance of TextMediaFormat.

Overrides
object.GetHashCode()
View Source

ToString()

Returns a string that represents the current object.

Declaration
C#
Copy
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()