SetTextFlowLanguage

Text, layout

คำอธิบาย

ตั้งภาษาหลักที่ใช้เมื่อ TextFlow เลือกจุดตัดคำแบบใช้ดุลยพินิจ

ไวยากรณ์

Delphi

Function TPDFlib.SetTextFlowLanguage(FlowID: Integer; Const Language: WideString): Integer;

ActiveX

Function PDFlib::SetTextFlowLanguage(FlowID As Long, Language As String) As Long

DLL

int DLSetTextFlowLanguage(int InstanceID, int FlowID, const wchar_t* Language);

พารามิเตอร์

FlowIDTextFlow handle returned by NewTextFlow
Languagelanguage tag แบบ BCP 47 หรือสตริงว่างเพื่อล้างภาษา

ค่าที่ส่งคืน

คืนค่า 1 เมื่อ flow กับไวยากรณ์ภาษาถูกต้อง มิฉะนั้น 0

หมายเหตุ

แท็กหลักถูก normalize เป็นตัวพิมพ์เล็กและถูกเก็บไว้โดยไม่มี subtag ภูมิภาคหรือ script

การใส่ขีดกลางคำอัตโนมัติรองรับ en, de, nl, fr, es, it, pt, ru และ trTextFlow ที่เพิ่งสร้างสืบทอด Catalog ของเอกสาร

/Lang value and enables automatic hyphenation when its primary language is supportedSetting an unsupported but syntactically valid primary tag disables automatic hyphenation while discretionary soft hyphens remain available

ดูเพิ่มเติม

GetTextFlowLanguage, SetTextFlowHyphenation, NewTextFlow