def legend(self): """ A |Legend| object providing access to the properties of the legend for this chart. """ legend_elm = self._chartSpace.chart.legend if legend_elm is None: return None return Legend(legend_elm)
def horz_offset_get_fixture(self, request): legend_cxml, expected_value = request.param legend = Legend(element(legend_cxml)) return legend, expected_value
def horz_offset_set_fixture(self, request): legend_cxml, new_value, expected_legend_cxml = request.param legend = Legend(element(legend_cxml)) expected_xml = xml(expected_legend_cxml) return legend, new_value, expected_xml
def font_fixture(self, request): legend_cxml, expected_cxml = request.param legend = Legend(element(legend_cxml)) expected_xml = xml(expected_cxml) return legend, expected_xml
def position_set_fixture(self, request): legend_cxml, new_enum_member, expected_legend_cxml = request.param legend = Legend(element(legend_cxml)) new_value = getattr(XL_LEGEND_POSITION, new_enum_member) expected_xml = xml(expected_legend_cxml) return legend, new_value, expected_xml
def position_get_fixture(self, request): legend_cxml, expected_enum_member = request.param legend = Legend(element(legend_cxml)) expected_value = getattr(XL_LEGEND_POSITION, expected_enum_member) return legend, expected_value
def include_in_layout_set_fixture(self, request): legend_cxml, new_value, expected_legend_cxml = request.param legend = Legend(element(legend_cxml)) expected_xml = xml(expected_legend_cxml) return legend, new_value, expected_xml
def include_in_layout_get_fixture(self, request): legend_cxml, expected_value = request.param legend = Legend(element(legend_cxml)) return legend, expected_value