GetFormFieldBackgroundColor

양식 필드, 색상

설명

지정한 필드의 배경색을 반환합니다. 사용할 수 있는 값 수는 양식 필드에 지정된 색상 유형에 따라 달라집니다. 사용할 수 있는 구성 요소 수는 theGetFormFieldBackgroundColorType 함수로 가져올 수 있습니다

0 = 지정된 색상 없음

1 = DeviceGray(1개 성분)

3 = DeviceRGB(3개 성분)

4 = CMYK(구성 요소 4개

구문

Delphi

Function TPDFlib.GetFormFieldBackgroundColor(Index, ColorComponent: Integer): Double;

ActiveX

Function PDFlib::GetFormFieldBackgroundColor(Index As Long, ColorComponent As Long) As Double

DLL

double DLGetFormFieldBackgroundColor(int InstanceID, int Index, int ColorComponent);

매개변수

Index검사할 양식 필드의 인덱스
ColorComponentDeviceGray(색상 유형 = 1)의 경우 1 = 회색 수준 DeviceRGB(색상 유형 = 3)의 경우 1 = 빨간색 2 = 녹색 3 = 파란색 DeviceCMYK(색상 유형 = 4)의 경우 1 = 청록색 2 = 자홍색 3 = 노란색 4 = 검은색

반환 값

필드 배경 색상 배열의 한 구성 요소(1부터 시작)를 반환하며, 구성 요소 수는 필드의 색 공간에 따릅니다. Index나 ColorComponent가 범위를 벗어났거나 필드가 배경 색상을 지정하지 않으면 0을 반환합니다