←Select platform

HasBom Property

Summary
Determines whether the file contains a byte-order mark (BOM) to indicate the text encoding.
Syntax
C#
VB
Objective-C
C++
Java
public bool HasBom { get; } 
Public ReadOnly Property HasBom As Boolean 
@property (nonatomic, assign, readonly) BOOL HasBom 
public boolean HasBom() 
public: 
property bool HasBom { 
   bool get(); 
} 

Property Value

true if the file contains a BOM; false, otherwise.

If this property is false and the source file contains text, the file will be assumed to have an encoding indicated by CodecsTxtLoadOptions.DefaultEncoding.

Example

For an example, refer to CodecsTxtLoadOptions.DefaultEncoding.

Requirements

Target Platforms

Help Version 21.0.2021.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly