Class BaseEncodeType
Namespace: Aspose.BarCode.Generation
Assembly: Aspose.BarCode.dll (25.2.0)
Base class for SymbologyEncodeType.
public class BaseEncodeType : IEquatable<baseencodetype>
Inheritance
Derived
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Classification
Gets a classification of this symbology.
public BarcodeClassifications Classification { get; }
Property Value
TypeIndex
Gets an index of encode type
public short TypeIndex { get; }
Property Value
TypeName
Gets a name of encode type
[XmlSerialization]
public string TypeName { get; }
Property Value
Methods
Equals(BaseEncodeType)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.Generation.BaseEncodeType value.
public bool Equals(BaseEncodeType other)
Parameters
other
BaseEncodeType
An Aspose.BarCode.Generation.BaseEncodeType value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
Equals(object)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.Generation.BaseEncodeType value.
public override bool Equals(object obj)
Parameters
obj
object
An System.Object value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
A 32-bit signed integer hash code.
GetString()
Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: “Index:0; Name:Codabar”.
public string GetString()
Returns
A string representing the complete value of the encode type
GetString(BaseEncodeType)
Converts the instance of BaseEncodeType to its equivalent string representation. The string format is: “Index:-1; Name:None”.
public static string GetString(BaseEncodeType instance)
Parameters
instance
BaseEncodeType
The BaseEncodeType instance to convert
Returns
A string representing the complete value of the given encode type
Parse(string)
Converts the string representation of the name of a BaseEncodeType to its instance.
public static BaseEncodeType Parse(string stringEncodeType)
Parameters
stringEncodeType
string
A string containing the name of a BaseEncodeType to convert.
Returns
the instance of Aspose.BarCode.Generation.BaseEncodeType, if conversion was successful; otherwise, it returns Aspose.BarCode.BarCodeRecognition.DecodeType.None.
ToString()
Returns the name of the given BaseEncodeType as a string.
public override string ToString()
Returns
A string representing the name of the encode type
TryParse(string, out BaseEncodeType)
Converts the string representation of a BaseEncodeType to its instance. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out BaseEncodeType result)
Parameters
parsingType
string
A string in the format as “Index:-1; Name:None” to convert.
result
BaseEncodeType
An actual SingleEncodeType returns, when conversion has completed successfully;
otherwise it returns null.
Returns
true if s was converted successfully; otherwise, false.
TryParse(string, out SymbologyEncodeType)
Converts the string representation of a BaseEncodeType to its instance. A return value indicates whether the conversion succeeded or failed.
public static bool TryParse(string parsingType, out SymbologyEncodeType result)
Parameters
parsingType
string
A string in the format as “Index:-1; Name:None” to convert.
result
SymbologyEncodeType
An actual SingleEncodeType returns, when conversion has completed successfully;
otherwise it returns null.
Returns
true if s was converted successfully; otherwise, false. </baseencodetype>