Shape

ImageRenderOptions Shape class este clasa de bază pentru toate elementele vizuale de pe un slide. AutoShape extinde Shape cu geometrie și un opțional TextFrame.

ImageRenderOptions: Aspose::Slides::Foss

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

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


Proprietăți Shape

NameTypeAccessDescription
ShapeTypeShapeTypeReadGets the shape type.
EffectFormatEffectFormatReadGets the effect format.
FillFormatFillFormatReadGets the fill format.
LineFormatLineFormatReadGets the line format.
ThreeDFormatThreeDFormatReadGets the three d format.
ShapeFrameShapeFrameReadGets the shape frame.
ISlideComponentISlideComponentReadGets the i slide component.
IPresentationIPresentationReadGets the i presentation.
IBaseSlideIBaseSlideReadGets the i base slide.
IPresentationComponentIPresentationComponentReadGets the i presentation component.

Proprietăți de format Shape

SignatureDescription
ShapeType()ShapeTypeProperty gets or sets the shape’s type
EffectFormat()EffectFormatProperty provides access to the shape’s effect formatting
EffectFormat()EffectFormat
FillFormat()FillFormatReturns the fill formatting object for the shape
FillFormat()FillFormat
LineFormat()LineFormatProperty provides access to the shape’s line formatting
LineFormat()LineFormat
ThreeDFormat()ThreeDFormatProperty provides access to the shape’s 3‑D formatting
ThreeDFormat()ThreeDFormat
ShapeFrame()ShapeFrameProperty provides access to the shape’s frame data
ShapeFrame()ShapeFrame
ISlideComponent()ISlideComponentReturns the slide component interface implemented by the shape
IPresentation()IPresentationProperty references the presentation interface containing the shape
IPresentation()IPresentation
IBaseSlide()IBaseSlideProperty references the base slide interface that holds the shape
IBaseSlide()IBaseSlide
IPresentationComponent()IPresentationComponentReturns the presentation component interface of the shape
IPresentationComponent()IPresentationComponent
~Shape()
shape_type()ShapeTypeReturns the shape type.
set_shape_type(value: ShapeType)Sets the shape type.
x()doubleReturns the x-coordinate of the shape.
set_x(value: double)Sets the shape’s X coordinate
y()doubleReturns the y-coordinate of the shape.
set_y(value: double)Sets the shape’s Y coordinate
width()doubleReturns the width of the shape.
set_width(value: double)
height()doubleReturns the height of the shape.
set_height(value: double)
rotation()doubleReturns the rotation angle in degrees.
set_rotation(value: double)Sets the shape’s rotation angle
name()std::stringReturns the shape name.
set_name(value: std::string)
effect_format()EffectFormatReturns the effect format for this shape.
effect_format()EffectFormatReturns the effect format for this shape.
fill_format()FillFormatReturns the fill format for this shape.
fill_format()FillFormatReturns the fill format for this shape.
line_format()LineFormatReturns the line format for this shape.
line_format()LineFormatReturns the line format for this shape.
three_d_format()ThreeDFormatReturns the 3D format for this shape.
three_d_format()ThreeDFormatReturns the 3D format for this shape.
is_text_holder()boolDetermines whether the shape is a TextHolder. Default: false.
placeholder()Returns the placeholder. Default: nullptr.
custom_data()Returns the custom data. Default: nullptr.
raw_frame()ShapeFrameReturns the raw shape frame.
set_raw_frame(value: ShapeFrame)
frame()ShapeFrameReturns the shape frame.
set_frame(value: ShapeFrame)
hidden()boolDetermines whether the shape is hidden.
set_hidden(value: bool)
z_order_position()std::int32_tReturns the z-order position.
connection_site_count()std::int32_tReturns the number of connection sites (default 4).
alternative_text()std::stringReturns the alternative text.
set_alternative_text(value: std::string)
alternative_text_title()std::stringReturns the alternative text title.
set_alternative_text_title(value: std::string)
is_decorative()boolGets the ‘Mark as decorative’ option.
set_is_decorative(value: bool)
unique_id()std::uint32_tReturns the presentation-scoped unique identifier.
office_interop_shape_id()std::uint32_tReturns the slide-scoped shape identifier.
is_grouped()boolDetermines whether the shape is grouped.
as_i_slide_component()ISlideComponentReturns the base ISlideComponent interface.
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)Sets the z-order position (used internally by ShapeCollection).
set_unique_id(value: std::uint32_t)Sets the unique id (used internally).
set_office_interop_shape_id(value: std::uint32_t)Sets the office interop shape id (used internally).
init_internal(xml_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide)Initialize this shape from an XML element within a slide part.
build_frame()ShapeFrameBuild a ShapeFrame from the current xfrm element.
apply_frame(value: IShapeFrame)Apply a ShapeFrame’s values to the xfrm element.
get_sp_pr()pugi::xml_nodeGet the spPr (or grpSpPr) element for this shape.
ensure_sp_pr()pugi::xml_nodeGet or create the spPr element.
get_c_nv_pr()pugi::xml_nodeGet the cNvPr element from the shape XML.
find_xfrm_in_element(xml_element: pugi::xml_node)pugi::xml_nodeFind the a:xfrm element directly within a shape XML element.
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_nodeFind the xfrm for a matching placeholder in a layout/master XML root.
xml_element()pugi::xml_nodeReturns the XML element backing this shape.
get_inherited_xfrm()pugi::xml_nodeWalk the layout -> master chain to find inherited xfrm for placeholders.
get_xfrm()pugi::xml_nodeGet the a:xfrm element from the shape XML, with placeholder inheritance.
ensure_xfrm()pugi::xml_nodeGet or create the a:xfrm element.

AutoShape

AutoShape moștenește de la GeometryShape (care moștenește de la Shape) și adaugă un TextFrame.

ImageRenderOptionsImageRenderOptionsImageRenderOptions
text_frame()ImageRenderOptionsReturnează TextFrame pentru această formă automată.
geometry_shape()ImageRenderOptionsReturnează proprietățile formei geometrice.

Interfața IShape

ImageRenderOptions IShape interfața definește contractul public. Metode cheie din IShape:

ImageRenderOptionsImageRenderOptions
set_raw_frame(const ShapeFrame&)Setează cadrul brut direct.
set_frame(const ShapeFrame&)Setează cadrul calculat.

Vezi și

 Română