MSO_CONNECTOR_TYPE
paper-pptx 0.2.0 API reference
Specifies a type of connector.
Alias: MSO_CONNECTOR
Example::
from pptx.enum.shapes import MSO_CONNECTOR from pptx.util import Cm
shapes = prs.slides[0].shapes connector = shapes.add_connector( MSO_CONNECTOR.STRAIGHT, Cm(2), Cm(2), Cm(10), Cm(10) ) assert connector.left.cm == 2
MS API Name: MsoConnectorType
http://msdn.microsoft.com/en-us/library/office/ff860918.aspx
Attributes
CURVE
attributeCURVE= (3, 'curvedConnector3', 'Curved connector.')Curved connector.
ELBOW
attributeELBOW= (2, 'bentConnector3', 'Elbow connector.')Elbow connector.
MIXED
attributeMIXED= (-2, '', 'Return value only; indicates a combination of other states.')Return value only; indicates a combination of other states.
STRAIGHT
attributeSTRAIGHT= (1, 'line', 'Straight line connector.')Straight line connector.
xml_value
attributexml_valuestr | NoneFunctions
from_xml
funcfrom_xml(xml_value: str) -> SelfEnumeration member corresponding to XML attribute value xml_value.
Raises ValueError if xml_value is the empty string ("") or is not an XML attribute
value registered on the enumeration. Note that enum members that do not correspond to one
of the defined values for an XML attribute have xml_value == "". These
"return-value only" members cannot be automatically mapped from an XML attribute value and
must be selected explicitly by code, based on the appropriate conditions.
Example::
WD_PARAGRAPH_ALIGNMENT.from_xml("center") WD_PARAGRAPH_ALIGNMENT.CENTER
paramxml_valuestrReturns
typing_extensions.Selfto_xml
functo_xml(value: int | _T) -> strXML value of this enum member, generally an XML attribute value.
paramvalueint | _TReturns
strvalidate
funcvalidate(value: _T)Raise ValueError if value is not an assignable value.
paramvalue_T