AddBlock

블록, 상호 작용

설명

나중에 개인화할 수 있게 현재 페이지에 템플릿 블록 주석을 만듭니다

구문

Delphi

Function AddBlock(Const BlockType, BlockName: WideString;
  Left, Top, Width, Height: Double; Const Properties: WideString): Integer;

ActiveX

Function PDFlib::AddBlock(BlockType As String, BlockName As String, Left As Double, Top As Double, Width As Double, Height As Double, Properties As String) As Long

DLL

int DLAddBlock(int InstanceID, const wchar_t* BlockType, const wchar_t* BlockName, double Left, double Top, double Width, double Height, const wchar_t* Properties);
int DLAddBlockA(int InstanceID, const char* BlockType, const char* BlockName, double Left, double Top, double Width, double Height, const char* Properties);

매개변수

BlockTypetext, image 또는 pdf, 대소문자 구분 없이 일치
BlockName비어 있지 않은 블록 이름
Left, Top, Width, Height상단 기준 퍼사드 좌표의 사각형
Properties주석 contents에 저장되는 선택적 key=value;key=value 목록

반환 값

성공 시 1, 잘못된 인자면 0

비고

블록 주석에는 자체 외관이 없으므로 뷰어가 플레이스홀더를 렌더링하지 않습니다

참고 항목

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock