Skip to main content

PresetColor

Enum PresetColor 

Source
pub enum PresetColor {
Show 147 variants AliceBlue, AntiqueWhite, Aqua, Aquamarine, Azure, Beige, Bisque, Black, BlanchedAlmond, Blue, BlueViolet, Brown, BurlyWood, CadetBlue, Chartreuse, Chocolate, Coral, CornflowerBlue, Cornsilk, Crimson, Cyan, DarkBlue, DarkCyan, DarkGoldenrod, DarkGray, DarkGreen, DarkGrey, DarkKhaki, DarkMagenta, DarkOliveGreen, DarkOrange, DarkOrchid, DarkRed, DarkSalmon, DarkSeaGreen, DarkSlateBlue, DarkSlateGray, DarkSlateGrey, DarkTurquoise, DarkViolet, DeepPink, DeepSkyBlue, DimGray, DimGrey, DodgerBlue, Firebrick, FloralWhite, ForestGreen, Fuchsia, Gainsboro, GhostWhite, Gold, Goldenrod, Gray, Green, GreenYellow, Grey, Honeydew, HotPink, IndianRed, Indigo, Ivory, Khaki, Lavender, LavenderBlush, LawnGreen, LemonChiffon, LightBlue, LightCoral, LightCyan, LightGoldenrodYellow, LightGray, LightGreen, LightGrey, LightPink, LightSalmon, LightSeaGreen, LightSkyBlue, LightSlateGray, LightSlateGrey, LightSteelBlue, LightYellow, Lime, LimeGreen, Linen, Magenta, Maroon, MediumAquamarine, MediumBlue, MediumOrchid, MediumPurple, MediumSeaGreen, MediumSlateBlue, MediumSpringGreen, MediumTurquoise, MediumVioletRed, MidnightBlue, MintCream, MistyRose, Moccasin, NavajoWhite, Navy, OldLace, Olive, OliveDrab, Orange, OrangeRed, Orchid, PaleGoldenrod, PaleGreen, PaleTurquoise, PaleVioletRed, PapayaWhip, PeachPuff, Peru, Pink, Plum, PowderBlue, Purple, Red, RosyBrown, RoyalBlue, SaddleBrown, Salmon, SandyBrown, SeaGreen, SeaShell, Sienna, Silver, SkyBlue, SlateBlue, SlateGray, SlateGrey, Snow, SpringGreen, SteelBlue, Tan, Teal, Thistle, Tomato, Turquoise, Violet, Wheat, White, WhiteSmoke, Yellow, YellowGreen,
}
Expand description

预设颜色(prstClr val)。

完整列表见 ECMA-376 Part 1, §20.1.2.3.23。 本枚举仅暴露 ECMA-376 中规定的 147 个命名颜色;与 python-pptx 的 MSO_THEME_COLOR 不同,这是颜色值而非主题色

Variants§

§

AliceBlue

§

AntiqueWhite

§

Aqua

§

Aquamarine

§

Azure

§

Beige

§

Bisque

§

Black

§

BlanchedAlmond

§

Blue

§

BlueViolet

§

Brown

§

BurlyWood

§

CadetBlue

§

Chartreuse

§

Chocolate

§

Coral

§

CornflowerBlue

§

Cornsilk

§

Crimson

§

Cyan

§

DarkBlue

§

DarkCyan

§

DarkGoldenrod

§

DarkGray

§

DarkGreen

§

DarkGrey

§

DarkKhaki

§

DarkMagenta

§

DarkOliveGreen

§

DarkOrange

§

DarkOrchid

§

DarkRed

§

DarkSalmon

§

DarkSeaGreen

§

DarkSlateBlue

§

DarkSlateGray

§

DarkSlateGrey

§

DarkTurquoise

§

DarkViolet

§

DeepPink

§

DeepSkyBlue

§

DimGray

§

DimGrey

§

DodgerBlue

§

Firebrick

§

FloralWhite

§

ForestGreen

§

Fuchsia

§

Gainsboro

§

GhostWhite

§

Gold

§

Goldenrod

§

Gray

§

Green

§

GreenYellow

§

Grey

§

Honeydew

§

HotPink

§

IndianRed

§

Indigo

§

Ivory

§

Khaki

§

Lavender

§

LavenderBlush

§

LawnGreen

§

LemonChiffon

§

LightBlue

§

LightCoral

§

LightCyan

§

LightGoldenrodYellow

§

LightGray

§

LightGreen

§

LightGrey

§

LightPink

§

LightSalmon

§

LightSeaGreen

§

LightSkyBlue

§

LightSlateGray

§

LightSlateGrey

§

LightSteelBlue

§

LightYellow

§

Lime

§

LimeGreen

§

Linen

§

Magenta

§

Maroon

§

MediumAquamarine

§

MediumBlue

§

MediumOrchid

§

MediumPurple

§

MediumSeaGreen

§

MediumSlateBlue

§

MediumSpringGreen

§

MediumTurquoise

§

MediumVioletRed

§

MidnightBlue

§

MintCream

§

MistyRose

§

Moccasin

§

NavajoWhite

§

Navy

§

OldLace

§

Olive

§

OliveDrab

§

Orange

§

OrangeRed

§

Orchid

§

PaleGoldenrod

§

PaleGreen

§

PaleTurquoise

§

PaleVioletRed

§

PapayaWhip

§

PeachPuff

§

Peru

§

Pink

§

Plum

§

PowderBlue

§

Purple

§

Red

§

RosyBrown

§

RoyalBlue

§

SaddleBrown

§

Salmon

§

SandyBrown

§

SeaGreen

§

SeaShell

§

Sienna

§

Silver

§

SkyBlue

§

SlateBlue

§

SlateGray

§

SlateGrey

§

Snow

§

SpringGreen

§

SteelBlue

§

Tan

§

Teal

§

Thistle

§

Tomato

§

Turquoise

§

Violet

§

Wheat

§

White

§

WhiteSmoke

§

Yellow

§

YellowGreen

Implementations§

Source§

impl PresetColor

Source

pub fn as_str(self) -> &'static str

转 OOXML 字面量(camelCase)。

Trait Implementations§

Source§

impl Clone for PresetColor

Source§

fn clone(&self) -> PresetColor

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PresetColor

Source§

impl Debug for PresetColor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for PresetColor

Source§

impl FromStr for PresetColor

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<PresetColor, <PresetColor as FromStr>::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for PresetColor

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for PresetColor

Source§

fn eq(&self, other: &PresetColor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for PresetColor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V