Shape — Aspose.Slides FOSS for C++ API Reference

Enumerations Shape class là lớp cơ sở cho tất cả các phần tử trực quan trên một slide. AutoShape kế thừa Shape với geometry và một tùy chọn TextFrame.

Enumerations: Aspose::Slides::Foss

#include <Aspose/Slides/Foss/shape.h>
#include <Aspose/Slides/Foss/auto_shape.h>

Enumerations: include/Aspose/Slides/Foss/shape.h, include/Aspose/Slides/Foss/auto_shape.h


Thuộc tính Shape

EnumerationsEnumerationsEnumerations
x() / set_x(double)Read/WriteVị trí X tính bằng points.
y() / set_y(double)Read/WriteVị trí Y tính bằng points.
width() / set_width(double)Read/WriteChiều rộng tính bằng points.
height() / set_height(double)Read/WriteChiều cao tính bằng points.
rotation() / set_rotation(double)Read/WriteGóc quay tính bằng độ.
hidden() / set_hidden(bool)Read/WriteCho biết hình dạng có bị ẩn hay không.
shape_type() / set_shape_type(ShapeType)Read/WriteKiểu hình học của hình dạng.
z_order_position()EnumerationsVị trí xếp chồng theo thứ tự Z.
unique_id()EnumerationsMã định danh duy nhất cho hình dạng này.
office_interop_shape_id()EnumerationsID hình dạng Office interop.
is_grouped()EnumerationsLiệu hình dạng có thuộc về một nhóm hay không.
is_text_holder()EnumerationsLiệu hình dạng có thể chứa văn bản hay không.
is_decorative() / set_is_decorative(bool)Đọc/GhiLiệu hình dạng có phải là trang trí (khả năng truy cập) hay không.
connection_site_count()EnumerationsSố lượng vị trí kết nối.
set_name(const std::string&)EnumerationsĐặt tên cho hình dạng.
set_alternative_text(const std::string&)EnumerationsĐặt văn bản thay thế cho khả năng truy cập.
set_alternative_text_title(const std::string&)EnumerationsĐặt tiêu đề văn bản thay thế.

Thuộc tính Định dạng Shape

EnumerationsEnumerationsEnumerations
fill_format()FillFormat&Cài đặt tô màu cho hình dạng này.
line_format()LineFormat&Cài đặt đường/kẻ viền.
effect_format()EffectFormat&Cài đặt hiệu ứng hình ảnh.
three_d_format()ThreeDFormat&3-D effect settings.
frame()ShapeFrameKhung vị trí và kích thước.

AutoShape

AutoShape kế thừa từ GeometryShape (mà kế thừa từ Shape) và thêm một TextFrame.

EnumerationsEnumerationsEnumerations
text_frame()EnumerationsTrả về the TextFrame cho hình dạng tự động này.
geometry_shape()EnumerationsTrả về các thuộc tính hình dạng hình học.

Giao diện IShape

Enumerations IShape interface định nghĩa hợp đồng công khai. Các phương thức chính từ IShape:

EnumerationsEnumerations
set_raw_frame(const ShapeFrame&)Đặt khung thô trực tiếp.
set_frame(const ShapeFrame&)Đặt khung đã tính toán.

Xem Thêm

 Tiếng Việt