SetFormFieldBackgroundColorGray

Trường biểu mẫu, Màu

Mô tả

Đặt màu nền của trường biểu mẫu chỉ định. Tương tự hàm SetFormFieldBackgroundColor nhưng chỉ định một thành phần màu duy nhất trong không gian Gray. Giá trị có thể từ 0 đến 1

Cú pháp

Delphi

Function TPDFlib.SetFormFieldBackgroundColorGray(Index: Integer; G: Double): Integer;

ActiveX

Function PDFlib::SetFormFieldBackgroundColorGray(Index As Long, gray As Double) As Long

DLL

int DLSetFormFieldBackgroundColorGray(int InstanceID, int Index, double gray);

Tham số

IndexChỉ số của trường biểu mẫu Xám Thành phần xám

Giá trị trả về

0Không tìm thấy trường biểu mẫu
1Đã đặt màu nền của trường biểu mẫu chỉ định thành công