Shape

ภาพรวม

Shape เป็นคลาสใน Aspose.Slides FOSS สําหรับ C++.

คลาสฐานสําหรับรูปแบบทั้งหมดบนสไลด์.

หมวดนี้ให้ 84 วิธีในการทํางานกับ Shape object ในโปรแกรม C++. วิธีการที่ใช้ได้แก่: EffectFormat, FillFormat, IBaseSlide, IPresentation, IPresentationComponent, ISlideComponent, LineFormat, ShapeFrame, ShapeType, ThreeDFormat, alternative_text, alternative_text_title,และ 57 วิธีการเพิ่มเติม. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน C++ ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.Slides FOSS for C++. คุณสมบัติ: EffectFormat, FillFormat, IBaseSlide, IPresentation, IPresentationComponent, ISlideComponent,และอีก 4 คน.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
ShapeTypeShapeTypeอ่านรับประเภทรูปทรง.
EffectFormatEffectFormatอ่านรับรูปแบบเอฟเฟกต์.
FillFormatFillFormatอ่านรับรูปแบบการเติม.
LineFormatLineFormatอ่านรับรูปแบบบรรทัด.
ThreeDFormatThreeDFormatอ่านรับรูปแบบสามมิติ.
ShapeFrameShapeFrameอ่านรับกรอบรูปทรง.
ISlideComponentISlideComponentอ่านรับส่วนประกอบ i slide.
IPresentationIPresentationอ่านรับการนำเสนอ i.
IBaseSlideIBaseSlideอ่านรับสไลด์ฐาน i.
IPresentationComponentIPresentationComponentอ่านรับส่วนประกอบการนำเสนอ i.

วิธีการ

Signatureคําอธิบาย
ShapeType()ShapeTypeคุณสมบัติได้รับหรือกําหนดชนิดของรูปทรง
EffectFormat()EffectFormatคุณสมบัติให้การเข้าถึงรูปแบบผลของรูปร่าง
EffectFormat()EffectFormat
FillFormat()FillFormatส่งกลับวัตถุการจัดรูปแบบเติมของรูปร่าง
FillFormat()FillFormat
LineFormat()LineFormatคุณสมบัติให้การเข้าถึงรูปแบบเส้นของรูปร่าง
LineFormat()LineFormat
ThreeDFormat()ThreeDFormatคุณสมบัติให้การเข้าถึงรูปแบบ 3 มิติของรูปร่าง
ThreeDFormat()ThreeDFormat
ShapeFrame()ShapeFrameคุณสมบัติให้การเข้าถึงข้อมูลกรอบของรูปแบบ
ShapeFrame()ShapeFrame
ISlideComponent()ISlideComponentการคืนสไลด์ส่วนประกอบที่ใช้โดยรูปแบบ
IPresentation()IPresentationคุณสมบัติอ้างอิงตัวแวดล้อมการแสดงภาพที่มีรูปแบบ
IPresentation()IPresentation
IBaseSlide()IBaseSlideคุณสมบัติอ้างอิงสไลด์พื้นฐานที่ถือรูปแบบ
IBaseSlide()IBaseSlide
IPresentationComponent()IPresentationComponentการคืนอินเตอร์เฟสส่วนประกอบการแสดงของรูปแบบ
IPresentationComponent()IPresentationComponent
~Shape()
shape_type()ShapeTypeการคืนรูปแบบของตัวเลข.
set_shape_type(value: ShapeType)ตั้งค่าประเภทรูปทรง.
x()doubleส่งกลับ x-coordinate ของรูปทรง.
set_x(value: double)ตั้งค่าพิกัด X ของรูปทรง
y()doubleกลับความเป็นสมาชิก y ของรูปร่าง.
set_y(value: double)ตั้งค่าพิกัด Y ของรูปทรง
width()doubleกลับความกว้างของรูปแบบ.
set_width(value: double)
height()doubleกลับความสูงของรูปทรง.
set_height(value: double)
rotation()doubleกลับมุมหมุนในองศา.
set_rotation(value: double)ตั้งค่ามุมการหมุนของรูปทรง
name()std::stringส่งชื่อรูปแบบกลับ.
set_name(value: std::string)
effect_format()EffectFormatส่งรูปแบบผลสําหรับรูปร่างนี้.
effect_format()EffectFormatส่งรูปแบบผลสําหรับรูปร่างนี้.
fill_format()FillFormatกลับรูปแบบการเติมของรูปร่างนี้.
fill_format()FillFormatกลับรูปแบบการเติมของรูปร่างนี้.
line_format()LineFormatกลับรูปแบบเส้นสําหรับรูปร่างนี้.
line_format()LineFormatกลับรูปแบบเส้นสําหรับรูปร่างนี้.
three_d_format()ThreeDFormatส่งรูปแบบ 3D สําหรับรูปร่างนี้.
three_d_format()ThreeDFormatส่งรูปแบบ 3D สําหรับรูปร่างนี้.
is_text_holder()boolตัดสินใจว่ารูปร่างเป็น TextHolder. พกติ: false.
placeholder()กลับตัวเก็บตําแหน่ง พื้นฐาน: nullptr.
custom_data()การคืนข้อมูลที่กําหนดเอง พื้นฐาน: nullptr.
raw_frame()ShapeFrameกลับกรอบรูปแบบสด.
set_raw_frame(value: ShapeFrame)
frame()ShapeFrameการคืนรูปทรงกรอบ.
set_frame(value: ShapeFrame)
hidden()boolตัดสินใจว่ารูปร่างถูกซ่อนอยู่หรือไม่.
set_hidden(value: bool)
z_order_position()std::int32_tกลับตําแหน่ง z-order.
connection_site_count()std::int32_tส่งจํานวนสถานที่เชื่อมต่อ (ตั้งค่า 4) กลับ.
alternative_text()std::stringการคืนข้อความทางเลือก.
set_alternative_text(value: std::string)
alternative_text_title()std::stringการคืนชื่อข้อความทางเลือก.
set_alternative_text_title(value: std::string)
is_decorative()boolรับตัวเลือก ‘Mark as decorative’.
set_is_decorative(value: bool)
unique_id()std::uint32_tกลับตัวจําแนกเฉพาะที่ใช้ในการแสดงภาพ.
office_interop_shape_id()std::uint32_tส่งกลับตัวจําแนกรูปแบบที่สไลด์-scoped.
is_grouped()boolตัดสินใจว่ารูปร่างถูกกลุ่มหรือไม.
as_i_slide_component()ISlideComponentกลับอินเตอร์เฟสฐาน ISlideComponent.
presentation()IPresentation
presentation()IPresentation
slide()IBaseSlide
slide()IBaseSlide
as_i_presentation_component()IPresentationComponent
as_i_presentation_component()IPresentationComponent
set_z_order_position(value: std::int32_t)กําหนดตําแหน่ง z-order (ใช้ภายในโดย ShapeCollection).
set_unique_id(value: std::uint32_t)ตั้งค่ารหัสที่ไม่ซ้ำ (ใช้ภายใน).
set_office_interop_shape_id(value: std::uint32_t)ตั้งค่า ID รูปร่างของ Office Interop (ใช้ภายใน).
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)เริ่มต้นรูปนี้จากตัว XML ภายในส่วนของสไลด์.
build_frame()ShapeFrameสร้าง ShapeFrame จากตัว xfrm ปัจจุบัน.
apply_frame(value: IShapeFrame)ใช้ค่าของ ShapeFrame ไปยังตัว xfrm.
get_sp_pr()pugi::xml_nodeรับองค์ประกอบ spPr (หรือ grpSpPr) สำหรับรูปร่างนี้.
ensure_sp_pr()pugi::xml_nodeดึงหรือสร้างองค์ประกอบ spPr.
get_c_nv_pr()pugi::xml_nodeดึงองค์ประกอบ cNvPr จากรูปร่าง XML.
find_xfrm_in_element(xml_element: pugi::xml_node)pugi::xml_nodeค้นหา a: xfrm องค์ประกอบโดยตรงภายในตัว XML รูปแบบ.
get_placeholder_info()std::optional<std::pair<std::optional<std::string>, std::string>>
find_placeholder_xfrm_in_xml(root: pugi::xml_node, ph_type: std::optional<std::string>, ph_idx: std::string_view)pugi::xml_nodeค้นหา xfrm สําหรับพลาสฮอลเดอร์ที่ตรงกันใน layout/master XML root.
xml_element()pugi::xml_nodeกลับตัว XML ที่รองรับรูปนี้.
get_inherited_xfrm()pugi::xml_nodeเดินทางการวางแผน -> master chain เพื่อหา xfrm ที่ได้รับมรดกสําหรับพลาสฮอลเดอร์.
get_xfrm()pugi::xml_nodeรับ a: xfrm จากรูป XML โดยมีการอํานวยทายของพลาสโฮลเดอร์.
ensure_xfrm()pugi::xml_nodeรับหรือสร้างองค์ประกอบ a:xfrm.

ดูเช่นกัน

 ภาษาไทย