brk-code

python-pptx の API リファレンス

python-pptx (scanny/python-pptx) の公開 API 400 件 —— クラス 256、関数 6、メソッド 138。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: scanny/python-pptx

種別件数
クラス256
関数6
メソッド138

API 一覧

classsrc.pptx.action.ActionSetting
Properties specifying how a shape or run reacts to mouse actions.
classsrc.pptx.action.Hyperlink
Represents a hyperlink action on a shape or text run.
methodsrc.pptx.action.Hyperlink.address() -> str | None
Read/write.
classsrc.pptx.chart.axis.AxisTitle
Provides properties for manipulating axis title.
classsrc.pptx.chart.axis.CategoryAxis
A category axis of a chart.
classsrc.pptx.chart.axis.DateAxis
A category axis with dates as its category labels.
methodsrc.pptx.chart.axis.TickLabels.number_format()
Read/write string (e.g.
classsrc.pptx.chart.axis.ValueAxis
An axis having continuous (as opposed to discrete) values.
classsrc.pptx.chart.chart.Chart
A chart object.
methodsrc.pptx.chart.chart.Chart.category_axis()
The category axis of this chart.
methodsrc.pptx.chart.chart.Chart.plots()
The sequence of plots in this chart.
classsrc.pptx.chart.chart.ChartTitle
Provides properties for manipulating a chart title.
classsrc.pptx.chart.data.BubbleDataPoint
A data point in a bubble chart series.
classsrc.pptx.chart.data.BubbleSeriesData
The data specific to a particular Bubble chart series.
classsrc.pptx.chart.data.CategoryDataPoint
A data point in a category chart series.
classsrc.pptx.chart.data.CategorySeriesData
The data specific to a particular category chart series.
classsrc.pptx.chart.data.XyDataPoint
A data point in an XY chart series.
methodsrc.pptx.chart.data.XyDataPoint.x()
The X value for this XY data point.
methodsrc.pptx.chart.data.XyDataPoint.y()
The Y value for this XY data point.
classsrc.pptx.chart.data.XySeriesData
The data specific to a particular XY chart series.
classsrc.pptx.chart.datalabel.DataLabel
The data label associated with an individual data point.
classsrc.pptx.chart.legend.Legend
Represents the legend in a chart.
classsrc.pptx.chart.plot.Area3DPlot
A 3-dimensional area plot.
classsrc.pptx.chart.plot.AreaPlot
An area plot.
classsrc.pptx.chart.plot.BarPlot
A bar chart-style plot.
classsrc.pptx.chart.plot.BubblePlot
A bubble chart plot.
classsrc.pptx.chart.plot.DoughnutPlot
An doughnut plot.
classsrc.pptx.chart.plot.LinePlot
A line chart-style plot.
classsrc.pptx.chart.plot.PiePlot
A pie chart-style plot.
classsrc.pptx.chart.plot.RadarPlot
A radar-style plot.
classsrc.pptx.chart.plot.XyPlot
An XY (scatter) plot.
classsrc.pptx.chart.series.AreaSeries
A data point series belonging to an area plot.
classsrc.pptx.chart.series.BarSeries
A data point series belonging to a bar plot.
classsrc.pptx.chart.series.BubbleSeries
A data point series belonging to a bubble plot.
classsrc.pptx.chart.series.LineSeries
A data point series belonging to a line plot.
classsrc.pptx.chart.series.PieSeries
A data point series belonging to a pie plot.
classsrc.pptx.chart.series.RadarSeries
A data point series belonging to a radar plot.
classsrc.pptx.chart.series.SeriesCollection
A sequence of |Series| objects.
classsrc.pptx.chart.series.XySeries
A data point series belonging to an XY (scatter) plot.
methodsrc.pptx.chart.series.XySeries.values()
Read-only.
classsrc.pptx.dml.color.RGBColor
Immutable value object defining a particular RGB color.
classsrc.pptx.dml.effect.ShadowFormat
Provides access to shadow effect on a shape.
classsrc.pptx.dml.fill.FillFormat
Provides access to the current fill properties.
methodsrc.pptx.dml.fill.FillFormat.background()
Sets the fill type to noFill, i.e.
methodsrc.pptx.dml.fill.FillFormat.gradient()
Sets the fill type to gradient.
methodsrc.pptx.dml.fill.FillFormat.patterned()
Selects the pattern fill type.
methodsrc.pptx.dml.fill.FillFormat.solid()
Sets the fill type to solid, i.e.
methodsrc.pptx.dml.fill.FillFormat.type() -> MSO_FILL_TYPE
The type of this fill, e.g.
methodsrc.pptx.dml.line.LineFormat.dash_style()
Return value indicating line style.
classsrc.pptx.enum.base.BaseEnum
Base class for Enums that do not map XML attr values.
classsrc.pptx.enum.base.BaseXmlEnum
Base class for Enums that also map XML attr values.
methodsrc.pptx.enum.base.BaseXmlEnum.to_xml(value:int | _T) -> str
XML value of this enum member, generally an XML attribute value.
classsrc.pptx.enum.chart.XL_CATEGORY_TYPE
Specifies the type of the category axis.
classsrc.pptx.enum.chart.XL_CHART_TYPE
Specifies the type of a chart.
classsrc.pptx.enum.chart.XL_DATA_LABEL_POSITION
Specifies where the data label is positioned.
classsrc.pptx.enum.chart.XL_LEGEND_POSITION
Specifies the position of the legend on a chart.
classsrc.pptx.enum.chart.XL_TICK_MARK
Specifies a type of axis tick for a chart.
classsrc.pptx.enum.dml.MSO_FILL_TYPE
Specifies the type of bitmap used for the fill of a shape.
classsrc.pptx.enum.dml.MSO_LINE_DASH_STYLE
Specifies the dash style for a line.
classsrc.pptx.enum.dml.MSO_PATTERN_TYPE
Specifies the fill pattern used in a shape.
classsrc.pptx.enum.lang.MSO_LANGUAGE_ID
Specifies the language identifier.
classsrc.pptx.enum.shapes.MSO_AUTO_SHAPE_TYPE
Specifies a type of AutoShape, e.g.
classsrc.pptx.enum.shapes.MSO_CONNECTOR_TYPE
Specifies a type of connector.
classsrc.pptx.enum.shapes.PP_MEDIA_TYPE
Indicates the OLE media type.
classsrc.pptx.enum.shapes.PP_PLACEHOLDER_TYPE
Specifies one of the 18 distinct types of placeholder.
classsrc.pptx.enum.shapes.PROG_ID
One-off Enum-like object for progId values.
classsrc.pptx.enum.text.MSO_AUTO_SIZE
Determines the type of automatic sizing allowed.
classsrc.pptx.enum.text.MSO_TEXT_UNDERLINE_TYPE
Indicates the type of underline for text.
classsrc.pptx.enum.text.MSO_VERTICAL_ANCHOR
Specifies the vertical alignment of text in a text frame.
classsrc.pptx.exc.PackageNotFoundError
Raised when a package cannot be found at the specified path.
classsrc.pptx.exc.PythonPptxError
Generic error class.
classsrc.pptx.media.Video
Immutable value object representing a video such as MP4.
methodsrc.pptx.media.Video.blob()
The bytestream of the media "file".
methodsrc.pptx.media.Video.content_type()
MIME-type of this media, e.g.
methodsrc.pptx.media.Video.filename() -> str
Return a filename.ext string appropriate to this video.
classsrc.pptx.opc.constants.NAMESPACE
Constant values for OPC XML namespaces
classsrc.pptx.opc.constants.RELATIONSHIP_TARGET_MODE
Open XML relationship target modes
classsrc.pptx.opc.oxml.CT_Default
`<Default>` element.
classsrc.pptx.opc.oxml.CT_Override
`<Override>` element.
classsrc.pptx.opc.oxml.CT_Relationship
`<Relationship>` element.
methodsrc.pptx.opc.oxml.CT_Relationship.new(rId:str, reltype:str, target_ref:str, target_mode:str=RTM.INTERNAL) -> CT_Relationship
Return a new `<Relationship>` element.
classsrc.pptx.opc.oxml.CT_Relationships
`<Relationships>` element, the root element in a .rels file.
methodsrc.pptx.opc.oxml.CT_Relationships.new() -> CT_Relationships
Return a new `<Relationships>` element.
classsrc.pptx.opc.oxml.CT_Types
`<Types>` element.
methodsrc.pptx.opc.oxml.CT_Types.new() -> CT_Types
Return a new `<Types>` element.
classsrc.pptx.opc.package.OpcPackage
Main API class for |python-opc|.
methodsrc.pptx.opc.package.OpcPackage.drop_rel(rId:str) -> None
Remove relationship identified by `rId`.
methodsrc.pptx.opc.package.OpcPackage.iter_parts() -> Iterator[Part]
Generate exactly one reference to each part in the package.
methodsrc.pptx.opc.package.OpcPackage.next_partname(tmpl:str) -> PackURI
Return |PackURI| next available partname matching `tmpl`.
methodsrc.pptx.opc.package.OpcPackage.open(pkg_file:str | IO[bytes]) -> Self
Return an |OpcPackage| instance loaded with the contents of `pkg_file`.
methodsrc.pptx.opc.package.OpcPackage.save(pkg_file:str | IO[bytes]) -> None
Save this package to `pkg_file`.
classsrc.pptx.opc.package.Part
Base class for package parts.
methodsrc.pptx.opc.package.Part.blob() -> bytes
Contents of this package part as a sequence of bytes.
methodsrc.pptx.opc.package.Part.content_type() -> str
Content-type (MIME-type) of this part.
methodsrc.pptx.opc.package.Part.load(partname:PackURI, content_type:str, package:Package, blob:bytes) -> Self
Return `cls` instance loaded from arguments.
methodsrc.pptx.opc.package.Part.load_rels_from_xml(xml_rels:CT_Relationships, parts:dict[PackURI, Part]) -> None
load _Relationships for this part from `xml_rels`.
methodsrc.pptx.opc.package.Part.package() -> Package
Package this part belongs to.
methodsrc.pptx.opc.package.Part.partname() -> PackURI
|PackURI| partname for this part, e.g.
classsrc.pptx.opc.package.PartFactory
Constructs a registered subtype of |Part|.
classsrc.pptx.opc.packuri.PackURI
Proxy for a pack URI (partname).
methodsrc.pptx.opc.packuri.PackURI.ext() -> str
The extension portion of this pack URI.
methodsrc.pptx.opc.packuri.PackURI.filename() -> str
The "filename" portion of this pack URI.
methodsrc.pptx.opc.packuri.PackURI.idx() -> int | None
Optional int partname index.
methodsrc.pptx.opc.packuri.PackURI.membername() -> str
The pack URI with the leading slash stripped off.
classsrc.pptx.opc.serialized.PackageWriter
Writes a zip-format OPC package to `pkg_file`.
methodsrc.pptx.opc.serialized.PackageWriter.write(pkg_file:str | IO[bytes], pkg_rels:_Relationships, parts:Sequence[Part]) -> None
Write a physical package (.pptx file) to `pkg_file`.
classsrc.pptx.oxml.action.CT_Hyperlink
Custom element class for <a:hlinkClick> elements.
methodsrc.pptx.oxml.action.CT_Hyperlink.action_fields() -> dict[str, str]
Query portion of the `ppaction://` URL as dict.
classsrc.pptx.oxml.chart.axis.CT_CatAx
`c:catAx` element, defining a category axis.
classsrc.pptx.oxml.chart.axis.CT_ChartLines
Used for `c:majorGridlines` and `c:minorGridlines`.
classsrc.pptx.oxml.chart.axis.CT_DateAx
`c:dateAx` element, defining a date (category) axis.
classsrc.pptx.oxml.chart.axis.CT_LblOffset
`c:lblOffset` custom element class.
classsrc.pptx.oxml.chart.axis.CT_Scaling
`c:scaling` element.
classsrc.pptx.oxml.chart.axis.CT_TickLblPos
`c:tickLblPos` element.
classsrc.pptx.oxml.chart.axis.CT_TickMark
Used for `c:minorTickMark` and `c:majorTickMark`.
classsrc.pptx.oxml.chart.axis.CT_ValAx
`c:valAx` element, defining a value axis.
classsrc.pptx.oxml.chart.chart.CT_Chart
`c:chart` custom element class.
methodsrc.pptx.oxml.chart.chart.CT_Chart.new_chart(rId:str) -> CT_Chart
Return a new `c:chart` element.
classsrc.pptx.oxml.chart.chart.CT_ChartSpace
`c:chartSpace` root element of a chart part.
classsrc.pptx.oxml.chart.chart.CT_PlotArea
``<c:plotArea>`` element.
classsrc.pptx.oxml.chart.chart.CT_Style
``<c:style>`` element; defines the chart style.
classsrc.pptx.oxml.chart.legend.CT_Legend
``<c:legend>`` custom element class
classsrc.pptx.oxml.chart.plot.BaseChartElement
Base class for barChart, lineChart, and other plot elements.
classsrc.pptx.oxml.chart.plot.CT_Area3DChart
``<c:area3DChart>`` element.
classsrc.pptx.oxml.chart.plot.CT_AreaChart
``<c:areaChart>`` element.
classsrc.pptx.oxml.chart.plot.CT_BarChart
``<c:barChart>`` element.
classsrc.pptx.oxml.chart.plot.CT_BubbleChart
``<c:bubbleChart>`` custom element class
classsrc.pptx.oxml.chart.plot.CT_BubbleScale
``<c:bubbleScale>`` custom element class
classsrc.pptx.oxml.chart.plot.CT_DoughnutChart
``<c:doughnutChart>`` element.
classsrc.pptx.oxml.chart.plot.CT_LineChart
``<c:lineChart>`` custom element class
classsrc.pptx.oxml.chart.plot.CT_PieChart
``<c:pieChart>`` custom element class
classsrc.pptx.oxml.chart.plot.CT_RadarChart
``<c:radarChart>`` custom element class
classsrc.pptx.oxml.chart.plot.CT_ScatterChart
``<c:scatterChart>`` custom element class
classsrc.pptx.oxml.chart.series.CT_SeriesComposite
``<c:ser>`` custom element class.
classsrc.pptx.oxml.chart.shared.CT_Boolean_Explicit
Always spells out the `val` attribute, e.g.
classsrc.pptx.oxml.chart.shared.CT_Double
Used for floating point values.
classsrc.pptx.oxml.chart.shared.CT_Layout
``<c:layout>`` custom element class
classsrc.pptx.oxml.chart.shared.CT_ManualLayout
``<c:manualLayout>`` custom element class
classsrc.pptx.oxml.chart.shared.CT_Title
`c:title` custom element class.
classsrc.pptx.oxml.chart.shared.CT_UnsignedInt
``<c:idx>`` element and others.
classsrc.pptx.oxml.coreprops.CT_CoreProperties
`cp:coreProperties` element.
methodsrc.pptx.oxml.coreprops.CT_CoreProperties.new_coreProperties() -> CT_CoreProperties
Return a new `cp:coreProperties` element
methodsrc.pptx.oxml.coreprops.CT_CoreProperties.revision_number() -> int
Integer value of revision property.
classsrc.pptx.oxml.dml.color.CT_HslColor
Custom element class for <a:hslClr> element.
classsrc.pptx.oxml.dml.color.CT_PresetColor
Custom element class for <a:prstClr> element.
classsrc.pptx.oxml.dml.color.CT_SRgbColor
Custom element class for <a:srgbClr> element.
classsrc.pptx.oxml.dml.color.CT_ScRgbColor
Custom element class for <a:scrgbClr> element.
classsrc.pptx.oxml.dml.color.CT_SchemeColor
Custom element class for <a:schemeClr> element.
classsrc.pptx.oxml.dml.color.CT_SystemColor
Custom element class for <a:sysClr> element.
classsrc.pptx.oxml.dml.fill.CT_Blip
<a:blip> element
classsrc.pptx.oxml.dml.fill.CT_BlipFillProperties
Custom element class for <a:blipFill> element.
classsrc.pptx.oxml.dml.fill.CT_GradientFillProperties
`a:gradFill` custom element class.
classsrc.pptx.oxml.dml.fill.CT_GradientStop
`a:gs` custom element class.
classsrc.pptx.oxml.dml.fill.CT_GradientStopList
`a:gsLst` custom element class.
classsrc.pptx.oxml.dml.fill.CT_GroupFillProperties
`a:grpFill` custom element class
classsrc.pptx.oxml.dml.fill.CT_LinearShadeProperties
`a:lin` custom element class
classsrc.pptx.oxml.dml.fill.CT_NoFillProperties
`a:noFill` custom element class
classsrc.pptx.oxml.dml.fill.CT_PatternFillProperties
`a:pattFill` custom element class
classsrc.pptx.oxml.dml.fill.CT_RelativeRect
`a:srcRect` element and perhaps others.
classsrc.pptx.oxml.dml.fill.CT_SolidColorFillProperties
`a:solidFill` custom element class.
classsrc.pptx.oxml.dml.line.CT_PresetLineDashProperties
`a:prstDash` custom element class
classsrc.pptx.oxml.ns.NamespacePrefixedTag
Value object that knows the semantics of an XML tag having a namespace prefix.
funcsrc.pptx.oxml.ns.nsuri(nspfx:str)
Return the namespace URI corresponding to `nspfx`.
funcsrc.pptx.oxml.ns.qn(namespace_prefixed_tag:str) -> str
Return a Clark-notation qualified tag name corresponding to `namespace_prefixed_tag`.
funcsrc.pptx.oxml.parse_xml(xml:str | bytes)
Return root lxml element obtained by parsing XML character string in `xml`.
classsrc.pptx.oxml.presentation.CT_SlideId
`p:sldId` element.
classsrc.pptx.oxml.presentation.CT_SlideIdList
`p:sldIdLst` element.
methodsrc.pptx.oxml.presentation.CT_SlideIdList.add_sldId(rId:str) -> CT_SlideId
Create and return a reference to a new `p:sldId` child element.
classsrc.pptx.oxml.presentation.CT_SlideMasterIdList
`p:sldMasterIdLst` element.
classsrc.pptx.oxml.presentation.CT_SlideSize
`p:sldSz` element.
classsrc.pptx.oxml.shapes.autoshape.CT_AdjPoint2D
`a:pt` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_CustomGeometry2D
`a:custGeom` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_GeomGuide
`a:gd` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_GeomGuideList
`a:avLst` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_NonVisualDrawingShapeProps
`p:cNvSpPr` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_Path2D
`a:path` custom element class.
methodsrc.pptx.oxml.shapes.autoshape.CT_Path2D.add_close() -> CT_Path2DClose
Return a newly created `a:close` element.
classsrc.pptx.oxml.shapes.autoshape.CT_Path2DClose
`a:close` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_Path2DLineTo
`a:lnTo` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_Path2DList
`a:pathLst` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_Path2DMoveTo
`a:moveTo` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_PresetGeometry2D
`a:prstGeom` custom element class.
classsrc.pptx.oxml.shapes.autoshape.CT_Shape
`p:sp` custom element class.
methodsrc.pptx.oxml.shapes.autoshape.CT_Shape.is_textbox()
True if this shape is a text box.
methodsrc.pptx.oxml.shapes.autoshape.CT_Shape.prstGeom() -> CT_PresetGeometry2D
Reference to `a:prstGeom` child element.
classsrc.pptx.oxml.shapes.autoshape.CT_ShapeNonVisual
`p:nvSpPr` custom element class.
classsrc.pptx.oxml.shapes.connector.CT_Connection
A `a:stCxn` or `a:endCxn` element.
classsrc.pptx.oxml.shapes.connector.CT_Connector
A line/connector shape `p:cxnSp` element
classsrc.pptx.oxml.shapes.graphfrm.CT_GraphicalObject
`a:graphic` element.
classsrc.pptx.oxml.shapes.graphfrm.CT_GraphicalObjectData
`p:graphicData` element.
classsrc.pptx.oxml.shapes.graphfrm.CT_GraphicalObjectFrame
`p:graphicFrame` element.
methodsrc.pptx.oxml.shapes.graphfrm.CT_GraphicalObjectFrame.get_or_add_xfrm() -> CT_Transform2D
Return the required `p:xfrm` child element.
classsrc.pptx.oxml.shapes.graphfrm.CT_GraphicalObjectFrameNonVisual
`p:nvGraphicFramePr` element.
classsrc.pptx.oxml.shapes.graphfrm.CT_OleObject
`p:oleObj` element, container for an OLE object (e.g.
classsrc.pptx.oxml.shapes.groupshape.CT_GroupShapeNonVisual
`p:nvGrpSpPr` element.
classsrc.pptx.oxml.shapes.groupshape.CT_GroupShapeProperties
p:grpSpPr element
classsrc.pptx.oxml.shapes.picture.CT_Picture
`p:pic` element.
methodsrc.pptx.oxml.shapes.picture.CT_Picture.blip_rId() -> str | None
Value of `p:blipFill/a:blip/@r:embed`.
classsrc.pptx.oxml.shapes.shared.CT_ApplicationNonVisualDrawingProps
`p:nvPr` element.
classsrc.pptx.oxml.shapes.shared.CT_LineProperties
Custom element class for <a:ln> element
classsrc.pptx.oxml.shapes.shared.CT_NonVisualDrawingProps
`p:cNvPr` custom element class.
classsrc.pptx.oxml.shapes.shared.CT_Placeholder
`p:ph` custom element class.
classsrc.pptx.oxml.shapes.shared.CT_Point2D
Custom element class for <a:off> element.
classsrc.pptx.oxml.shapes.shared.CT_PositiveSize2D
Custom element class for <a:ext> element.
classsrc.pptx.oxml.shapes.shared.CT_ShapeProperties
Custom element class for `p:spPr` element.
classsrc.pptx.oxml.shapes.shared.CT_Transform2D
`a:xfrm` custom element class.
methodsrc.pptx.oxml.simpletypes.BaseSimpleType.validate_float(value:Any)
Note that int values are accepted.
classsrc.pptx.oxml.simpletypes.ST_Angle
Valid values for `rot` attribute on `<a:xfrm>` element.
classsrc.pptx.oxml.simpletypes.ST_AxisUnit
Valid values for val attribute on c:majorUnit and others.
classsrc.pptx.oxml.simpletypes.ST_BarDir
Valid values for <c:barDir val="?"> attribute
classsrc.pptx.oxml.simpletypes.ST_Direction
Valid values for `<p:ph orient="...">` attribute.
classsrc.pptx.oxml.simpletypes.ST_Grouping
Valid values for <c:grouping val=""> attribute.
classsrc.pptx.oxml.simpletypes.ST_PlaceholderSize
Valid values for <p:ph> sz (size) attribute
classsrc.pptx.oxml.simpletypes.ST_PositiveFixedAngle
Valid values for `a:lin@ang`.
classsrc.pptx.oxml.simpletypes.ST_TextWrappingType
Valid values for <a:bodyPr wrap=""> attribute
classsrc.pptx.oxml.simpletypes.XsdStringEnumeration
Set of enumerated xsd:string values.
classsrc.pptx.oxml.simpletypes.XsdToken
xsd:string with whitespace collapsing, e.g.
classsrc.pptx.oxml.simpletypes.XsdTokenEnumeration
xsd:string with whitespace collapsing, e.g.
classsrc.pptx.oxml.slide.CT_Background
`p:bg` element.
classsrc.pptx.oxml.slide.CT_BackgroundProperties
`p:bgPr` element.
classsrc.pptx.oxml.slide.CT_CommonSlideData
`p:cSld` element.
methodsrc.pptx.oxml.slide.CT_CommonSlideData.get_or_add_bgPr() -> CT_BackgroundProperties
Return `p:bg/p:bgPr` grandchild.
classsrc.pptx.oxml.slide.CT_NotesMaster
`p:notesMaster` element, root of a notes master part.
classsrc.pptx.oxml.slide.CT_NotesSlide
`p:notes` element, root of a notes slide part.
classsrc.pptx.oxml.slide.CT_Slide
`p:sld` element, root element of a slide part (XML document).
methodsrc.pptx.oxml.slide.CT_Slide.new() -> CT_Slide
Return new `p:sld` element configured as base slide shape.
classsrc.pptx.oxml.slide.CT_SlideLayout
`p:sldLayout` element, root of a slide layout part.
classsrc.pptx.oxml.slide.CT_SlideLayoutIdList
`p:sldLayoutIdLst` element, child of `p:sldMaster`.
classsrc.pptx.oxml.slide.CT_SlideLayoutIdListEntry
`p:sldLayoutId` element, child of `p:sldLayoutIdLst`.
classsrc.pptx.oxml.slide.CT_SlideMaster
`p:sldMaster` element, root of a slide master part.
classsrc.pptx.oxml.slide.CT_TLMediaNodeVideo
`p:video` element, specifying video media details.
classsrc.pptx.oxml.slide.CT_TimeNodeList
`p:tnLst` or `p:childTnList` element.
classsrc.pptx.oxml.table.CT_Table
`a:tbl` custom element class
methodsrc.pptx.oxml.table.CT_Table.iter_tcs() -> Iterator[CT_TableCell]
Generate each `a:tc` element in this tbl.
methodsrc.pptx.oxml.table.CT_Table.new_tbl(rows:int, cols:int, width:int, height:int, tableStyleId:str | None=None) -> CT_Table
Return a new `p:tbl` element tree.
methodsrc.pptx.oxml.table.CT_Table.tc(row_idx:int, col_idx:int) -> CT_TableCell
Return `a:tc` element at `row_idx`, `col_idx`.
classsrc.pptx.oxml.table.CT_TableCell
`a:tc` custom element class
methodsrc.pptx.oxml.table.CT_TableCell.col_idx() -> int
Offset of this cell's column in its table.
methodsrc.pptx.oxml.table.CT_TableCell.is_merge_origin() -> bool
True if cell is top-left in merged cell range.
methodsrc.pptx.oxml.table.CT_TableCell.marB() -> Length
Bottom margin value represented in `marB` attribute.
methodsrc.pptx.oxml.table.CT_TableCell.marL() -> Length
Left margin value represented in `marL` attribute.
methodsrc.pptx.oxml.table.CT_TableCell.marR() -> Length
Right margin value represented in `marR` attribute.
methodsrc.pptx.oxml.table.CT_TableCell.marT() -> Length
Top margin for this cell.
methodsrc.pptx.oxml.table.CT_TableCell.new() -> CT_TableCell
Return a new `a:tc` element subtree.
methodsrc.pptx.oxml.table.CT_TableCell.row_idx() -> int
Offset of this cell's row in its table.
methodsrc.pptx.oxml.table.CT_TableCell.tbl() -> CT_Table
Table element this cell belongs to.
methodsrc.pptx.oxml.table.CT_TableCell.text() -> str
str text contained in cell
classsrc.pptx.oxml.table.CT_TableCellProperties
`a:tcPr` custom element class
classsrc.pptx.oxml.table.CT_TableCol
`a:gridCol` custom element class.
classsrc.pptx.oxml.table.CT_TableGrid
`a:tblGrid` custom element class.
classsrc.pptx.oxml.table.CT_TableProperties
`a:tblPr` custom element class.
classsrc.pptx.oxml.table.CT_TableRow
`a:tr` custom element class.
methodsrc.pptx.oxml.table.CT_TableRow.add_tc() -> CT_TableCell
A newly added minimal valid `a:tc` child element.
methodsrc.pptx.oxml.table.CT_TableRow.row_idx() -> int
Offset of this row in its table.
classsrc.pptx.oxml.table.TcRange
A 2D block of `a:tc` cell elements in a table.
methodsrc.pptx.oxml.table.TcRange.dimensions() -> tuple[int, int]
(row_count, col_count) pair describing size of range.
funcsrc.pptx.oxml.table.TcRange.start_and_size(idx:int, other_idx:int) -> tuple[int, int]
Return beginning and length of range based on two indexes.
classsrc.pptx.oxml.text.CT_RegularTextRun
`a:r` custom element class
methodsrc.pptx.oxml.text.CT_RegularTextRun.text() -> str
All text of (required) `a:t` child.
classsrc.pptx.oxml.text.CT_TextBody
`p:txBody` custom element class.
methodsrc.pptx.oxml.text.CT_TextBody.is_empty() -> bool
True if only a single empty `a:p` element is present.
methodsrc.pptx.oxml.text.CT_TextBody.new()
Return a new `p:txBody` element tree.
methodsrc.pptx.oxml.text.CT_TextBody.new_a_txBody() -> CT_TextBody
Return a new `a:txBody` element tree.
methodsrc.pptx.oxml.text.CT_TextBody.new_txPr()
Return a `c:txPr` element tree.
classsrc.pptx.oxml.text.CT_TextBodyProperties
`a:bodyPr` custom element class.
methodsrc.pptx.oxml.text.CT_TextField.text() -> str
The text of the `a:t` child element.
classsrc.pptx.oxml.text.CT_TextLineBreak
`a:br` line break element
classsrc.pptx.oxml.text.CT_TextParagraph
`a:p` custom element class
methodsrc.pptx.oxml.text.CT_TextParagraph.add_br() -> CT_TextLineBreak
Return a newly appended `a:br` element.
methodsrc.pptx.oxml.text.CT_TextParagraph.add_r(text:str | None=None) -> CT_RegularTextRun
Return a newly appended `a:r` element.
methodsrc.pptx.oxml.text.CT_TextParagraph.text() -> str
str text contained in this paragraph.
classsrc.pptx.oxml.text.CT_TextParagraphProperties
`a:pPr` custom element class.
classsrc.pptx.oxml.text.CT_TextSpacing
Used for `a:lnSpc`, `a:spcBef`, and `a:spcAft` elements.
methodsrc.pptx.oxml.text.CT_TextSpacing.set_spcPct(value:float)
Set spacing to `value` lines, e.g.
methodsrc.pptx.oxml.text.CT_TextSpacing.set_spcPts(value:Length)
Set spacing to `value` points.
classsrc.pptx.oxml.theme.CT_OfficeStyleSheet
``<a:theme>`` element, root of a theme part
classsrc.pptx.oxml.xmlchemy.AttributeType
Interface for an object that can act as an attribute type.
methodsrc.pptx.oxml.xmlchemy.AttributeType.from_xml(xml_value:str) -> Any
Transform an attribute value to a Python value.
classsrc.pptx.oxml.xmlchemy.BaseOxmlElement
Effective base class for all custom element classes.
methodsrc.pptx.oxml.xmlchemy.BaseOxmlElement.first_child_found_in(*tagnames:str) -> _Element | None
First child with tag in `tagnames`, or None if not found.
methodsrc.pptx.oxml.xmlchemy.BaseOxmlElement.remove_all(*tagnames:str) -> None
Remove child elements with tagname (e.g.
methodsrc.pptx.oxml.xmlchemy.BaseOxmlElement.xpath(xpath_str:str) -> Any
Override of `lxml` _Element.xpath() method.
classsrc.pptx.oxml.xmlchemy.MetaOxmlElement
Metaclass for BaseOxmlElement.
classsrc.pptx.oxml.xmlchemy.OneAndOnlyOne
Defines a required child element for MetaOxmlElement.
classsrc.pptx.oxml.xmlchemy.OptionalAttribute
Defines an optional attribute on a custom element class.
classsrc.pptx.oxml.xmlchemy.RequiredAttribute
Defines a required attribute on a custom element class.
classsrc.pptx.oxml.xmlchemy.ZeroOrOne
Defines an optional child element for MetaOxmlElement.
funcsrc.pptx.oxml.xmlchemy.serialize_for_reading(element:ElementBase)
Serialize *element* to human-readable XML suitable for tests.
classsrc.pptx.package.Package
An overall .pptx package.
classsrc.pptx.parts.chart.ChartPart
A chart part.
classsrc.pptx.parts.coreprops.CorePropertiesPart
Corresponds to part named `/docProps/core.xml`.
classsrc.pptx.parts.embeddedpackage.EmbeddedDocxPart
A Word .docx file stored in a part.
classsrc.pptx.parts.embeddedpackage.EmbeddedPackagePart
A distinct OPC package, e.g.
classsrc.pptx.parts.embeddedpackage.EmbeddedPptxPart
A PowerPoint file stored in a part.
classsrc.pptx.parts.embeddedpackage.EmbeddedXlsxPart
An Excel file stored in a part.
methodsrc.pptx.parts.image.Image.blob() -> bytes
The binary image bytestream of this image.
methodsrc.pptx.parts.image.Image.content_type() -> str
MIME-type of this image, e.g.
methodsrc.pptx.parts.image.Image.ext() -> str
Canonical file extension for this image e.g.
methodsrc.pptx.parts.image.Image.from_file(image_file:str | IO[bytes]) -> Image
Return a new |Image| object loaded from `image_file`.
methodsrc.pptx.parts.image.Image.sha1() -> str
SHA1 hash digest of the image blob.
classsrc.pptx.parts.image.ImagePart
An image part.
methodsrc.pptx.parts.image.ImagePart.desc() -> str
The filename associated with this image.
methodsrc.pptx.parts.image.ImagePart.ext() -> str
File-name extension for this image e.g.
methodsrc.pptx.parts.image.ImagePart.image() -> Image
An |Image| object containing the image in this image part.
methodsrc.pptx.parts.image.ImagePart.new(package:Package, image:Image) -> ImagePart
Return new |ImagePart| instance containing `image`.
classsrc.pptx.parts.media.MediaPart
A media part, containing an audio or video resource.
classsrc.pptx.parts.presentation.PresentationPart
Top level class in object model.
methodsrc.pptx.parts.presentation.PresentationPart.related_slide(rId:str) -> Slide
Return |Slide| object for related |SlidePart| related by `rId`.
classsrc.pptx.parts.slide.BaseSlidePart
Base class for slide parts.
methodsrc.pptx.parts.slide.BaseSlidePart.name() -> str
Internal name of this slide.
classsrc.pptx.parts.slide.NotesMasterPart
Notes master part.
classsrc.pptx.parts.slide.NotesSlidePart
Notes slide part.
classsrc.pptx.parts.slide.SlideLayoutPart
Slide layout part.
classsrc.pptx.parts.slide.SlideMasterPart
Slide master part.
classsrc.pptx.parts.slide.SlidePart
Slide part.
methodsrc.pptx.parts.slide.SlidePart.notes_slide() -> NotesSlide
The |NotesSlide| instance associated with this slide.
classsrc.pptx.presentation.Presentation
PresentationML (PML) presentation.
methodsrc.pptx.presentation.Presentation.notes_master() -> NotesMaster
Instance of |NotesMaster| for this presentation.
methodsrc.pptx.presentation.Presentation.save(file:str | IO[bytes])
Writes this presentation to `file`.
classsrc.pptx.shapes.autoshape.Adjustment
An adjustment value for an autoshape.
methodsrc.pptx.shapes.autoshape.Adjustment.val() -> int
Denormalized effective value.
classsrc.pptx.shapes.autoshape.AdjustmentCollection
Sequence of |Adjustment| instances for an auto shape.
classsrc.pptx.shapes.autoshape.Shape
A shape that can appear on a slide.
methodsrc.pptx.shapes.autoshape.Shape.fill()
|FillFormat| instance for this shape.
methodsrc.pptx.shapes.autoshape.Shape.has_text_frame() -> bool
|True| if this shape can contain text.
methodsrc.pptx.shapes.autoshape.Shape.line()
|LineFormat| instance for this shape.
methodsrc.pptx.shapes.autoshape.Shape.text() -> str
Read/write.
methodsrc.pptx.shapes.autoshape.Shape.text_frame()
|TextFrame| instance for this shape.
classsrc.pptx.shapes.base.BaseShape
Base class for shape objects.
methodsrc.pptx.shapes.base.BaseShape.element() -> ShapeElement
`lxml` element for this shape, e.g.
methodsrc.pptx.shapes.base.BaseShape.has_text_frame() -> bool
|True| if this shape can contain text.
methodsrc.pptx.shapes.base.BaseShape.height() -> Length
Read/write.
methodsrc.pptx.shapes.base.BaseShape.is_placeholder() -> bool
True if this shape is a placeholder.
methodsrc.pptx.shapes.base.BaseShape.name() -> str
Name of this shape, e.g.
methodsrc.pptx.shapes.base.BaseShape.part() -> BaseSlidePart
The package part containing this shape.
methodsrc.pptx.shapes.base.BaseShape.rotation() -> float
Degrees of clockwise rotation.
methodsrc.pptx.shapes.base.BaseShape.shape_id() -> int
Read-only positive integer identifying this shape.
methodsrc.pptx.shapes.base.BaseShape.width() -> Length
Distance between left and right extents of this shape.
classsrc.pptx.shapes.connector.Connector
Connector (line) shape.
classsrc.pptx.shapes.freeform.FreeformBuilder
Allows a freeform shape to be specified and created.
methodsrc.pptx.shapes.graphfrm.GraphicFrame.has_chart() -> bool
|True| if this graphic frame contains a chart object.
methodsrc.pptx.shapes.graphfrm.GraphicFrame.ole_format() -> _OleFormat
_OleFormat object for this graphic-frame shape.
methodsrc.pptx.shapes.graphfrm.GraphicFrame.shadow() -> ShadowFormat
Unconditionally raises |NotImplementedError|.
methodsrc.pptx.shapes.graphfrm.GraphicFrame.table() -> Table
The |Table| object contained in this graphic frame.
classsrc.pptx.shapes.group.GroupShape
A shape that acts as a container for other shapes.
methodsrc.pptx.shapes.group.GroupShape.click_action() -> ActionSetting
Unconditionally raises `TypeError`.
methodsrc.pptx.shapes.group.GroupShape.has_text_frame() -> bool
Unconditionally |False|.
methodsrc.pptx.shapes.group.GroupShape.shapes() -> GroupShapes
|GroupShapes| object for this group.
classsrc.pptx.shapes.picture.Movie
A movie shape, one that places a video on a slide.
methodsrc.pptx.shapes.picture.Movie.media_format() -> _MediaFormat
The |_MediaFormat| object for this movie.
methodsrc.pptx.shapes.picture.Movie.media_type() -> PP_MEDIA_TYPE
Member of :ref:`PpMediaType` describing this shape.
classsrc.pptx.shapes.picture.Picture
A picture shape, one that places an image on a slide.
methodsrc.pptx.shapes.picture.Picture.auto_shape_type() -> MSO_SHAPE | None
Member of MSO_SHAPE indicating masking shape.
methodsrc.pptx.shapes.picture.Picture.image()
The |Image| object for this picture.
classsrc.pptx.shapes.placeholder.ChartPlaceholder
Placeholder shape that can only accept a chart.
classsrc.pptx.shapes.placeholder.LayoutPlaceholder
Placeholder shape on a slide layout.
classsrc.pptx.shapes.placeholder.MasterPlaceholder
Placeholder shape on a slide master.
classsrc.pptx.shapes.placeholder.NotesSlidePlaceholder
Placeholder shape on a notes slide.
classsrc.pptx.shapes.placeholder.PicturePlaceholder
Placeholder shape that can only accept a picture.
classsrc.pptx.shapes.placeholder.PlaceholderPicture
Placeholder shape populated with a picture.
classsrc.pptx.shapes.placeholder.SlidePlaceholder
Placeholder shape on a slide.
classsrc.pptx.shapes.placeholder.TablePlaceholder
Placeholder shape that can only accept a table.
classsrc.pptx.shapes.shapetree.BasePlaceholders
Base class for placeholder collections.
classsrc.pptx.shapes.shapetree.GroupShapes
The sequence of child shapes belonging to a group shape.
classsrc.pptx.shapes.shapetree.LayoutShapes
Sequence of shapes appearing on a slide layout.
classsrc.pptx.shapes.shapetree.MasterShapes
Sequence of shapes appearing on a slide master.
classsrc.pptx.shapes.shapetree.NotesSlidePlaceholders
Sequence of placeholder shapes on a notes slide.
classsrc.pptx.shapes.shapetree.NotesSlideShapes
Sequence of shapes appearing on a notes slide.
classsrc.pptx.shapes.shapetree.SlidePlaceholders
Collection of placeholder shapes on a slide.
funcsrc.pptx.shapes.shapetree.SlideShapeFactory(shape_elm:ShapeElement, parent:ProvidesPart) -> BaseShape
Return appropriate shape object for `shape_elm` on a slide.
classsrc.pptx.shapes.shapetree.SlideShapes
Sequence of shapes appearing on a slide.
methodsrc.pptx.shapes.shapetree.SlideShapes.add_table(rows:int, cols:int, left:Length, top:Length, width:Length, height:Length) -> GraphicFrame
Add a |GraphicFrame| object containing a table.
methodsrc.pptx.shapes.shapetree.SlideShapes.clone_layout_placeholders(slide_layout:SlideLayout) -> None
Add placeholder shapes based on those in `slide_layout`.
methodsrc.pptx.shapes.shapetree.SlideShapes.placeholders() -> SlidePlaceholders
Sequence of placeholder shapes in this slide.
methodsrc.pptx.shapes.shapetree.SlideShapes.title() -> Shape | None
The title placeholder shape on the slide.
classsrc.pptx.shared.ElementProxy
Base class for lxml element proxy classes.
classsrc.pptx.shared.ParentedElementProxy
Provides access to ancestor objects and part.
methodsrc.pptx.shared.ParentedElementProxy.part() -> XmlPart
The package part containing this object.
classsrc.pptx.slide.NotesMaster
Proxy for the notes master XML document.
classsrc.pptx.slide.NotesSlide
Notes slide object.
methodsrc.pptx.slide.NotesSlide.shapes() -> NotesSlideShapes
Sequence of shape objects appearing on this notes slide.
classsrc.pptx.slide.Slide
Slide object.
methodsrc.pptx.slide.Slide.has_notes_slide() -> bool
`True` if this slide has a notes slide, `False` otherwise.
methodsrc.pptx.slide.Slide.notes_slide() -> NotesSlide
The |NotesSlide| instance for this slide.
methodsrc.pptx.slide.Slide.placeholders() -> SlidePlaceholders
Sequence of placeholder shapes in this slide.
methodsrc.pptx.slide.Slide.shapes() -> SlideShapes
Sequence of shape objects appearing on this slide.
methodsrc.pptx.slide.Slide.slide_layout() -> SlideLayout
|SlideLayout| object this slide inherits appearance from.
classsrc.pptx.slide.SlideLayout
Slide layout object.
methodsrc.pptx.slide.SlideLayout.placeholders() -> LayoutPlaceholders
Sequence of placeholder shapes in this slide layout.
methodsrc.pptx.slide.SlideLayout.shapes() -> LayoutShapes
Sequence of shapes appearing on this slide layout.
classsrc.pptx.slide.SlideLayouts
Sequence of slide layouts belonging to a slide-master.
methodsrc.pptx.slide.SlideLayouts.index(slide_layout:SlideLayout) -> int
Return zero-based index of `slide_layout` in this collection.
methodsrc.pptx.slide.SlideLayouts.remove(slide_layout:SlideLayout) -> None
Remove `slide_layout` from the collection.
classsrc.pptx.slide.SlideMaster
Slide master object.
classsrc.pptx.slide.SlideMasters
Sequence of |SlideMaster| objects belonging to a presentation.
classsrc.pptx.slide.Slides
Sequence of slides belonging to an instance of |Presentation|.
methodsrc.pptx.slide.Slides.index(slide:Slide) -> int
Map `slide` to its zero-based position in this slide sequence.
classsrc.pptx.table.Table
A DrawingML table object.
methodsrc.pptx.table.Table.cell(row_idx:int, col_idx:int) -> _Cell
Return cell at `row_idx`, `col_idx`.
methodsrc.pptx.table.Table.columns() -> _ColumnCollection
|_ColumnCollection| instance for this table.

この情報について

掲載しているシグネチャは scanny/python-pptx の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る