Class ExifData
Namespace: Aspose.Imaging.Exif
Assembly: Aspose.Imaging.dll (25.2.0)
Container dữ liệu EXIF.
[JsonObject(MemberSerialization.OptIn)]
public class ExifData : TiffDataTypeController
Kế thừa
object ← TiffDataTypeController ← ExifData
Kế thừa
Thành viên kế thừa
TiffDataTypeController.Exists(ushort), TiffDataTypeController.RemoveTagByID(ushort), TiffDataTypeController.GetSectionTags(int), TiffDataTypeController.SetSectionTags(int, TiffDataType[]), TiffDataTypeController.GetTiffLongTypeValue(ushort, uint), TiffDataTypeController.SetTiffLongTypeValue(ushort, uint, int), TiffDataTypeController.GetTiffByteValue(ushort), TiffDataTypeController.SetTiffByteValue(ushort, byte[], int), TiffDataTypeController.GetTiffSRationalValue(ushort), TiffDataTypeController.SetTiffSRationalValue(ushort, TiffSRational, int), TiffDataTypeController.GetTiffRationalArray(ushort), TiffDataTypeController.SetTiffRationalArray(ushort, TiffRational[], int), TiffDataTypeController.GetTiffRationalValue(ushort), TiffDataTypeController.SetTiffRational(ushort, TiffRational, int), TiffDataTypeController.GetTiffStringValue(ushort), TiffDataTypeController.SetTiffStringValue(ushort, string, int), TiffDataTypeController.GetTiffUndefinedValue(ushort), TiffDataTypeController.SetTiffUndefinedValue(ushort, byte[], int), TiffDataTypeController.GetTiffShortValue(ushort, ushort), TiffDataTypeController.SetTiffShortValue(ushort, ushort, int), TiffDataTypeController.GetTiffShortArray(ushort), TiffDataTypeController.SetTiffShortArray(ushort, ushort[], int), TiffDataTypeController.GetTiffType(ushort), TiffDataTypeController.SetTiffType(TiffDataType, int), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Ví dụ
Truy cập ghi chú nhà sản xuất camera trong hình ảnh Jpeg.```csharp [C#]
using (var image = (JpegImage)Image.Load("Sample.jpg"))
{
foreach (var makerNote in image.ExifData.MakerNotes)
{
Console.WriteLine("Name = {0}, Value = {1}", makerNote.Name, makerNote.Value);
}
}
## Hàm khởi tạo
### <a id="Aspose_Imaging_Exif_ExifData__ctor"></a> ExifData\(\)
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.Exif.ExifData.
```csharp
[JsonConstructor]
public ExifData()
ExifData(TiffDataType[])
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.Exif.ExifData với dữ liệu từ mảng.
public ExifData(TiffDataType[] exifdata)
Tham số
exifdata
TiffDataType[]
Mảng các thẻ EXIF cùng với các thẻ chung và GPS.
ExifData(TiffDataType[], TiffDataType[], TiffDataType[])
Khởi tạo một thể hiện mới của lớp Aspose.Imaging.Exif.ExifData với dữ liệu từ mảng.
public ExifData(TiffDataType[] commonTags, TiffDataType[] exifTags, TiffDataType[] gpsTags)
Tham số
commonTags
TiffDataType[]
Các thẻ chung.
exifTags
TiffDataType[]
Các thẻ EXIF.
gpsTags
TiffDataType[]
Các thẻ GPS.
Thuộc tính
ApertureValue
Lấy hoặc thiết lập giá trị khẩu độ.
public TiffRational ApertureValue { get; set; }
Giá trị thuộc tính
BodySerialNumber
Lấy hoặc thiết lập số sê-ri của thân máy ảnh.
public string BodySerialNumber { get; set; }
Giá trị thuộc tính
BrightnessValue
Lấy hoặc thiết lập giá trị độ sáng.
public TiffSRational BrightnessValue { get; set; }
Giá trị thuộc tính
CFAPattern
Lấy hoặc thiết lập mẫu CFA.
public byte[] CFAPattern { get; set; }
Giá trị thuộc tính
byte[]
CameraOwnerName
Lấy hoặc thiết lập tên chủ sở hữu camera.
public string CameraOwnerName { get; set; }
Giá trị thuộc tính
ColorSpace
Lấy hoặc thiết lập không gian màu.
public ExifColorSpace ColorSpace { get; set; }
Giá trị thuộc tính
CommonTags
Lấy hoặc thiết lập các thẻ thuộc về phần chung. Điều này chỉ áp dụng cho hình ảnh jpeg, trong định dạng tiff các tùy chọn tiff đang được sử dụng thay thế.
public TiffDataType[] CommonTags { get; set; }
Giá trị thuộc tính
ComponentsConfiguration
Lấy hoặc thiết lập cấu hình các thành phần.
public byte[] ComponentsConfiguration { get; set; }
Giá trị thuộc tính
byte[]
CompressedBitsPerPixel
Lấy hoặc thiết lập số bit nén trên mỗi pixel.
public TiffRational CompressedBitsPerPixel { get; set; }
Giá trị thuộc tính
Contrast
Lấy hoặc thiết lập độ tương phản.
public ExifContrast Contrast { get; set; }
Giá trị thuộc tính
CustomRendered
Lấy hoặc thiết lập giá trị tùy chỉnh đã được render.
public ExifCustomRendered CustomRendered { get; set; }
Giá trị thuộc tính
DateTimeDigitized
Lấy hoặc thiết lập thời gian số hóa.
public string DateTimeDigitized { get; set; }
Giá trị thuộc tính
DateTimeOriginal
Lấy hoặc thiết lập thời gian gốc.
public string DateTimeOriginal { get; set; }
Giá trị thuộc tính
DeviceSettingDescription
Lấy hoặc thiết lập mô tả cài đặt thiết bị.
public byte[] DeviceSettingDescription { get; set; }
Giá trị thuộc tính
byte[]
DigitalZoomRatio
Lấy hoặc thiết lập tỷ lệ zoom số.
public TiffRational DigitalZoomRatio { get; set; }
Giá trị thuộc tính
ExifTags
Lấy hoặc thiết lập các thẻ chỉ thuộc về phần EXIF.
public TiffDataType[] ExifTags { get; set; }
Giá trị thuộc tính
ExifVersion
Lấy hoặc thiết lập phiên bản EXIF.
public byte[] ExifVersion { get; set; }
Giá trị thuộc tính
byte[]
ExposureBiasValue
Lấy hoặc thiết lập giá trị bù phơi sáng.
public TiffSRational ExposureBiasValue { get; set; }
Giá trị thuộc tính
ExposureIndex
Lấy hoặc thiết lập chỉ số phơi sáng.
public TiffRational ExposureIndex { get; set; }
Giá trị thuộc tính
ExposureMode
Lấy hoặc thiết lập chế độ phơi sáng.
public ExifExposureMode ExposureMode { get; set; }
Giá trị thuộc tính
ExposureProgram
Lấy hoặc thiết lập chương trình phơi sáng.
public ExifExposureProgram ExposureProgram { get; set; }
Giá trị thuộc tính
ExposureTime
Lấy hoặc thiết lập thời gian phơi sáng.
public TiffRational ExposureTime { get; set; }
Giá trị thuộc tính
FNumber
Lấy hoặc thiết lập giá trị F-number.
public TiffRational FNumber { get; set; }
Giá trị thuộc tính
FileSource
Lấy hoặc thiết lập loại nguồn tệp.
public ExifFileSource FileSource { get; set; }
Giá trị thuộc tính
Flash
Lấy hoặc thiết lập giá trị flash.
public ExifFlash Flash { get; set; }
Giá trị thuộc tính
FlashEnergy
Lấy hoặc thiết lập năng lượng flash.
public TiffRational FlashEnergy { get; set; }
Giá trị thuộc tính
FlashpixVersion
Lấy hoặc thiết lập phiên bản flash pix.
public byte[] FlashpixVersion { get; set; }
Giá trị thuộc tính
byte[]
FocalLength
Lấy hoặc thiết lập chiều dài tiêu cự.
public TiffRational FocalLength { get; set; }
Giá trị thuộc tính
FocalLengthIn35MmFilm
Lấy hoặc thiết lập chiều dài tiêu cự trong phim 35 mm.
public ushort FocalLengthIn35MmFilm { get; set; }
Giá trị thuộc tính
FocalPlaneResolutionUnit
Lấy hoặc thiết lập đơn vị độ phân giải mặt phẳng tiêu cự.
public ExifUnit FocalPlaneResolutionUnit { get; set; }
Giá trị thuộc tính
FocalPlaneXResolution
Lấy hoặc thiết lập độ phân giải x của mặt phẳng tiêu cự.
public TiffRational FocalPlaneXResolution { get; set; }
Giá trị thuộc tính
FocalPlaneYResolution
Lấy hoặc thiết lập độ phân giải y của mặt phẳng tiêu cự.
public TiffRational FocalPlaneYResolution { get; set; }
Giá trị thuộc tính
GPSAltitude
Lấy hoặc thiết lập độ cao GPS.
public TiffRational GPSAltitude { get; set; }
Giá trị thuộc tính
GPSAltitudeRef
Lấy hoặc thiết lập độ cao GPS được sử dụng làm độ cao tham chiếu.
public ExifGPSAltitudeRef GPSAltitudeRef { get; set; }
Giá trị thuộc tính
GPSAreaInformation
Lấy hoặc thiết lập thông tin khu vực GPS.
public byte[] GPSAreaInformation { get; set; }
Giá trị thuộc tính
byte[]
GPSDOP
Lấy hoặc thiết lập GPS DOP (mức độ chính xác dữ liệu).
public TiffRational GPSDOP { get; set; }
Giá trị thuộc tính
GPSDateStamp
Lấy hoặc thiết lập chuỗi ký tự GPS ghi lại ngày và giờ thông tin liên quan đến UTC (Thời gian Phối hợp Quốc tế).
public string GPSDateStamp { get; set; }
Giá trị thuộc tính
GPSDestBearing
Lấy hoặc thiết lập hướng GPS đến điểm đến.
public TiffRational GPSDestBearing { get; set; }
Giá trị thuộc tính
GPSDestBearingRef
Lấy hoặc thiết lập tham chiếu GPS được sử dụng để chỉ định hướng đến điểm đến.
public string GPSDestBearingRef { get; set; }
Giá trị thuộc tính
GPSDestDistance
Lấy hoặc thiết lập khoảng cách GPS đến điểm đến.
public TiffRational GPSDestDistance { get; set; }
Giá trị thuộc tính
GPSDestDistanceRef
Lấy hoặc thiết lập đơn vị GPS được sử dụng để biểu thị khoảng cách đến điểm đến.
public string GPSDestDistanceRef { get; set; }
Giá trị thuộc tính
GPSDestLatitude
Lấy hoặc thiết lập vĩ độ GPS của điểm đến.
public TiffRational[] GPSDestLatitude { get; set; }
Giá trị thuộc tính
GPSDestLatitudeRef
Lấy hoặc thiết lập giá trị GPS cho biết liệu vĩ độ của điểm đến là vĩ độ bắc hay nam.
public string GPSDestLatitudeRef { get; set; }
Giá trị thuộc tính
GPSDestLongitude
Lấy hoặc thiết lập kinh độ GPS của điểm đến.
public TiffRational[] GPSDestLongitude { get; set; }
Giá trị thuộc tính
GPSDestLongitudeRef
Lấy hoặc thiết lập giá trị GPS cho biết liệu kinh độ của điểm đến là kinh độ đông hay tây.
public string GPSDestLongitudeRef { get; set; }
Giá trị thuộc tính
GPSDifferential
Lấy hoặc thiết lập giá trị GPS cho biết liệu có áp dụng hiệu chỉnh khác biệt cho bộ thu GPS hay không.
public ushort GPSDifferential { get; set; }
Giá trị thuộc tính
GPSImgDirection
Lấy hoặc thiết lập hướng GPS của hình ảnh khi nó được chụp.
public TiffRational GPSImgDirection { get; set; }
Giá trị thuộc tính
GPSImgDirectionRef
Lấy hoặc thiết lập tham chiếu GPS để chỉ định hướng của hình ảnh khi nó được chụp.
public string GPSImgDirectionRef { get; set; }
Giá trị thuộc tính
GPSLatitude
Lấy hoặc thiết lập vĩ độ GPS.
public TiffRational[] GPSLatitude { get; set; }
Giá trị thuộc tính
GPSLatitudeRef
Lấy hoặc thiết lập vĩ độ GPS là bắc hay nam.
public string GPSLatitudeRef { get; set; }
Giá trị thuộc tính
GPSLongitude
Lấy hoặc thiết lập kinh độ GPS.
public TiffRational[] GPSLongitude { get; set; }
Giá trị thuộc tính
GPSLongitudeRef
Lấy hoặc thiết lập kinh độ GPS là đông hay tây.
public string GPSLongitudeRef { get; set; }
Giá trị thuộc tính
GPSMapDatum
Lấy hoặc thiết lập dữ liệu khảo sát địa lý GPS được sử dụng bởi bộ thu GPS.
public string GPSMapDatum { get; set; }
Giá trị thuộc tính
GPSMeasureMode
Lấy hoặc thiết lập chế độ đo GPS.
public string GPSMeasureMode { get; set; }
Giá trị thuộc tính
GPSProcessingMethod
Lấy hoặc thiết lập chuỗi ký tự GPS ghi lại tên của phương pháp được sử dụng để xác định vị trí.
public byte[] GPSProcessingMethod { get; set; }
Giá trị thuộc tính
byte[]
GPSSatellites
Lấy hoặc thiết lập các vệ tinh GPS được sử dụng cho các phép đo.
public string GPSSatellites { get; set; }
Giá trị thuộc tính
GPSSpeed
Lấy hoặc thiết lập tốc độ di chuyển của bộ thu GPS.
public TiffRational GPSSpeed { get; set; }
Giá trị thuộc tính
GPSSpeedRef
Lấy hoặc thiết lập đơn vị được sử dụng để biểu thị tốc độ di chuyển của bộ thu GPS.
public string GPSSpeedRef { get; set; }
Giá trị thuộc tính
GPSStatus
Lấy hoặc thiết lập trạng thái của bộ thu GPS khi hình ảnh được ghi lại.
public string GPSStatus { get; set; }
Giá trị thuộc tính
GPSTags
Lấy hoặc thiết lập các thẻ, chỉ thuộc về phần GPS.
public TiffDataType[] GPSTags { get; set; }
Giá trị thuộc tính
GPSTimestamp
Lấy hoặc thiết lập thời gian GPS theo UTC (Thời gian Phối hợp Quốc tế).
public TiffRational[] GPSTimestamp { get; set; }
Giá trị thuộc tính
GPSTrack
Lấy hoặc thiết lập hướng di chuyển của bộ thu GPS.
public string GPSTrack { get; set; }
Giá trị thuộc tính
GPSTrackRef
Lấy hoặc thiết lập tham chiếu để chỉ định hướng di chuyển của bộ thu GPS.
public string GPSTrackRef { get; set; }
Giá trị thuộc tính
GPSVersionID
Lấy hoặc thiết lập định danh phiên bản GPS.
public byte[] GPSVersionID { get; set; }
Giá trị thuộc tính
byte[]
GainControl
Lấy hoặc thiết lập mức độ điều chỉnh tổng thể của hình ảnh.
public ExifGainControl GainControl { get; set; }
Giá trị thuộc tính
Gamma
Lấy hoặc thiết lập gamma.
public TiffRational Gamma { get; set; }
Giá trị thuộc tính
ISOSpeed
Lấy hoặc thiết lập tốc độ ISO.
public uint ISOSpeed { get; set; }
Giá trị thuộc tính
ISOSpeedLatitudeYYY
Lấy hoặc thiết lập giá trị ISO speed latitude yyy của một camera hoặc thiết bị đầu vào được định nghĩa trong ISO 12232.
public uint ISOSpeedLatitudeYYY { get; set; }
Giá trị thuộc tính
Nhận xét
Thẻ này không được ghi lại mà không có ISOSpeed và ISOSpeedLatitudezzz.
ISOSpeedLatitudeZZZ
Lấy hoặc thiết lập giá trị ISO speed latitude zzz của một camera hoặc thiết bị đầu vào được định nghĩa trong ISO 12232.
public uint ISOSpeedLatitudeZZZ { get; set; }
Giá trị thuộc tính
Nhận xét
Thẻ này không được ghi lại mà không có ISOSpeed và ISOSpeedLatitudeyyy.
ImageUniqueID
Lấy hoặc thiết lập định danh duy nhất của hình ảnh.
public string ImageUniqueID { get; set; }
Giá trị thuộc tính
IsBigEndian
Lấy hoặc thiết lập giá trị cho biết liệu luồng dữ liệu EXIF được tạo ra có phải là big endian hay không.
[JsonProperty]
public bool IsBigEndian { get; set; }
Giá trị thuộc tính
LensMake
Lấy hoặc thiết lập nhà sản xuất của ống kính.
public string LensMake { get; set; }
Giá trị thuộc tính
LensModel
Lấy hoặc thiết lập mô hình ống kính.
public string LensModel { get; set; }
Giá trị thuộc tính
LensSerialNumber
Lấy hoặc thiết lập số sê-ri của ống kính.
public string LensSerialNumber { get; set; }
Giá trị thuộc tính
LensSpecification
Lấy hoặc thiết lập thông số kỹ thuật của ống kính.
public TiffRational[] LensSpecification { get; set; }
Giá trị thuộc tính
LightSource
Lấy hoặc thiết lập nguồn sáng.
public ExifLightSource LightSource { get; set; }
Giá trị thuộc tính
Make
Lấy hoặc thiết lập nhà sản xuất của thiết bị ghi âm.
public string Make { get; set; }
Giá trị thuộc tính
MakerNoteData
Lấy dữ liệu ghi chú nhà sản xuất.
public TiffDataType[] MakerNoteData { get; }
Giá trị thuộc tính
MakerNoteRawData
Lấy hoặc thiết lập dữ liệu thô ghi chú nhà sản xuất.
public byte[] MakerNoteRawData { get; set; }
Giá trị thuộc tính
byte[]
MakerNotes
Lấy ghi chú nhà sản xuất.
public MakerNote[] MakerNotes { get; }
Giá trị thuộc tính
Ví dụ
Truy cập ghi chú nhà sản xuất camera trong hình ảnh Jpeg.```csharp [C#]
using (var image = (JpegImage)Image.Load("Sample.jpg"))
{
foreach (var makerNote in image.ExifData.MakerNotes)
{
Console.WriteLine("Name = {0}, Value = {1}", makerNote.Name, makerNote.Value);
}
}
### <a id="Aspose_Imaging_Exif_ExifData_MaxApertureValue"></a> MaxApertureValue
Lấy hoặc thiết lập giá trị khẩu độ tối đa.
```csharp
public TiffRational MaxApertureValue { get; set; }
Giá trị thuộc tính
MeteringMode
Lấy hoặc thiết lập chế độ đo sáng.
public ExifMeteringMode MeteringMode { get; set; }
Giá trị thuộc tính
OECF
Lấy hoặc thiết lập Hàm Chuyển đổi Quang-Điện (OECF) được chỉ định trong ISO 14524.
public byte[] OECF { get; set; }
Giá trị thuộc tính
byte[]
Orientation
Lấy hoặc thiết lập hướng.
public ExifOrientation Orientation { get; set; }
Giá trị thuộc tính
PhotographicSensitivity
Lấy hoặc thiết lập độ nhạy chụp ảnh.
public uint PhotographicSensitivity { get; set; }
Giá trị thuộc tính
PixelXDimension
Lấy hoặc thiết lập kích thước pixel x.
public uint PixelXDimension { get; set; }
Giá trị thuộc tính
PixelYDimension
Lấy hoặc thiết lập kích thước pixel y.
public uint PixelYDimension { get; set; }
Giá trị thuộc tính
Properties
Lấy hoặc thiết lập tất cả các thẻ EXIF (bao gồm các thẻ chung và GPS).
public TiffDataType[] Properties { get; set; }
Giá trị thuộc tính
RecommendedExposureIndex
Lấy hoặc thiết lập chỉ số phơi sáng được khuyến nghị.
public uint RecommendedExposureIndex { get; set; }
Giá trị thuộc tính
RelatedSoundFile
Lấy hoặc thiết lập tệp âm thanh liên quan.
public string RelatedSoundFile { get; set; }
Giá trị thuộc tính
Saturation
Lấy hoặc thiết lập độ bão hòa.
public ExifSaturation Saturation { get; set; }
Giá trị thuộc tính
SceneCaptureType
Lấy hoặc thiết lập loại cảnh chụp.
public ExifSceneCaptureType SceneCaptureType { get; set; }
Giá trị thuộc tính
SceneType
Lấy hoặc thiết lập loại cảnh.
public byte SceneType { get; set; }
Giá trị thuộc tính
SensingMethod
Lấy hoặc thiết lập phương pháp cảm biến.
public ExifSensingMethod SensingMethod { get; set; }
Giá trị thuộc tính
SensitivityType
Lấy hoặc thiết lập loại độ nhạy.
public ushort SensitivityType { get; set; }
Giá trị thuộc tính
Sharpness
Lấy hoặc thiết lập độ sắc nét.
public ushort Sharpness { get; set; }
Giá trị thuộc tính
ShutterSpeedValue
Lấy hoặc thiết lập giá trị tốc độ màn trập.
public TiffSRational ShutterSpeedValue { get; set; }
Giá trị thuộc tính
SpatialFrequencyResponse
Lấy hoặc thiết lập phản hồi tần số không gian.
public byte[] SpatialFrequencyResponse { get; set; }
Giá trị thuộc tính
byte[]
SpectralSensitivity
Lấy hoặc thiết lập độ nhạy quang phổ.
public string SpectralSensitivity { get; set; }
Giá trị thuộc tính
StandardOutputSensitivity
Lấy hoặc thiết lập độ nhạy đầu ra tiêu chuẩn.
public uint StandardOutputSensitivity { get; set; }
Giá trị thuộc tính
SubjectArea
Lấy hoặc thiết lập khu vực đối tượng.
public ushort[] SubjectArea { get; set; }
Giá trị thuộc tính
ushort[]
SubjectDistance
Lấy hoặc thiết lập khoảng cách đến đối tượng.
public TiffRational SubjectDistance { get; set; }
Giá trị thuộc tính
SubjectDistanceRange
Lấy hoặc thiết lập khoảng cách đối tượng.
public ExifSubjectDistanceRange SubjectDistanceRange { get; set; }
Giá trị thuộc tính
SubjectLocation
Lấy hoặc thiết lập vị trí đối tượng.
public ushort[] SubjectLocation { get; set; }
Giá trị thuộc tính
ushort[]
SubsecTime
Lấy hoặc thiết lập phần của giây cho thẻ DateTime.
public string SubsecTime { get; set; }
Giá trị thuộc tính
SubsecTimeDigitized
Lấy hoặc thiết lập phần của giây cho thẻ DateTimeDigitized.
public string SubsecTimeDigitized { get; set; }
Giá trị thuộc tính
SubsecTimeOriginal
Lấy hoặc thiết lập phần của giây cho thẻ DateTimeOriginal.
public string SubsecTimeOriginal { get; set; }
Giá trị thuộc tính
UserComment
Lấy hoặc thiết lập bình luận của người dùng.
public string UserComment { get; set; }
Giá trị thuộc tính
WhiteBalance
Lấy hoặc thiết lập cân bằng trắng.
public ExifWhiteBalance WhiteBalance { get; set; }
Giá trị thuộc tính
WhitePoint
Lấy hoặc thiết lập độ màu của điểm trắng của hình ảnh.
public TiffRational[] WhitePoint { get; set; }
Giá trị thuộc tính
Phương thức
GetShortOrLong(ushort)
Lấy giá trị ngắn hoặc dài.
protected uint GetShortOrLong(ushort key)
Tham số
key
ushort
Khóa để lấy giá trị.
Trả về
Giá trị ngắn hoặc dài được chuyển đổi thành số nguyên.
RemoveTag(ExifProperties)
Xóa thẻ khỏi container.
public void RemoveTag(ExifProperties tag)
Tham số
tag
ExifProperties
Thẻ cần xóa.
RemoveTag(ushort)
Xóa thẻ khỏi container.
public void RemoveTag(ushort tagId)
Tham số
tagId
ushort
Định danh thẻ để xóa.
SetShortOrLong(ushort, uint, int)
Thiết lập giá trị ngắn hoặc dài tùy thuộc vào giá trị.
protected void SetShortOrLong(ushort key, uint value, int section)
Tham số
key
ushort
Khóa để thiết lập.
value
uint
Giá trị để thiết lập.
section
int
Phần để đưa mục vào.