Table of Contents

Class OdfImageNormalizationRequest

Namespace
OdfKit.Image
Assembly
OdfKit.dll

Describes a practical image compatibility normalization recommendation. 描述實務影像相容性正規化建議。

public sealed record OdfImageNormalizationRequest : IEquatable<OdfImageNormalizationRequest>
Inheritance
OdfImageNormalizationRequest
Implements
Inherited Members

Constructors

OdfImageNormalizationRequest(string, string?, bool, string?, string?)

Describes a practical image compatibility normalization recommendation. 描述實務影像相容性正規化建議。

public OdfImageNormalizationRequest(string PreferredName, string? MediaType, bool IsPortable, string? RecommendedMediaType, string? RecommendedName)

Parameters

PreferredName string

The normalized preferred file name. / 正規化後的偏好檔名。

MediaType string

The supplied media type. / 傳入的媒體類型。

IsPortable bool

Whether the image format is portable across common ODF editors. / 影像格式是否可在常見 ODF 編輯器間可攜。

RecommendedMediaType string

The recommended portable media type, if conversion is suggested. / 建議轉換的可攜媒體類型。

RecommendedName string

The recommended portable file name, if conversion is suggested. / 建議轉換的可攜檔名。

Properties

IsPortable

Whether the image format is portable across common ODF editors. / 影像格式是否可在常見 ODF 編輯器間可攜。

public bool IsPortable { get; init; }

Property Value

bool

MediaType

The supplied media type. / 傳入的媒體類型。

public string? MediaType { get; init; }

Property Value

string

PreferredName

The normalized preferred file name. / 正規化後的偏好檔名。

public string PreferredName { get; init; }

Property Value

string

RecommendedMediaType

The recommended portable media type, if conversion is suggested. / 建議轉換的可攜媒體類型。

public string? RecommendedMediaType { get; init; }

Property Value

string

RecommendedName

The recommended portable file name, if conversion is suggested. / 建議轉換的可攜檔名。

public string? RecommendedName { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string?, out bool, out string?, out string?)

public void Deconstruct(out string PreferredName, out string? MediaType, out bool IsPortable, out string? RecommendedMediaType, out string? RecommendedName)

Parameters

PreferredName string
MediaType string
IsPortable bool
RecommendedMediaType string
RecommendedName string

Equals(OdfImageNormalizationRequest?)

public bool Equals(OdfImageNormalizationRequest? other)

Parameters

other OdfImageNormalizationRequest

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OdfImageNormalizationRequest?, OdfImageNormalizationRequest?)

public static bool operator ==(OdfImageNormalizationRequest? left, OdfImageNormalizationRequest? right)

Parameters

left OdfImageNormalizationRequest
right OdfImageNormalizationRequest

Returns

bool

operator !=(OdfImageNormalizationRequest?, OdfImageNormalizationRequest?)

public static bool operator !=(OdfImageNormalizationRequest? left, OdfImageNormalizationRequest? right)

Parameters

left OdfImageNormalizationRequest
right OdfImageNormalizationRequest

Returns

bool