API Reference
OfficeArtColorReference
Represents the packed OfficeArtCOLORREF value defined by MS-ODRAW.
Inheritance
- ValueType
- OfficeArtColorReference
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OfficeArtGradientStop.Color
- Property OfficeArtPictureProperties.RecolorColor
- Property OfficeArtPictureProperties.TransparentColor
- Property OfficeArtShapeStyle.FillBackColor
- Property OfficeArtShapeStyle.FillColor
- Property OfficeArtShapeStyle.LineColor
- Property OfficeArtShapeStyle.ShadowColor
Accepted by parameters
Constructors
public OfficeArtColorReference(UInt32 value) #Creates a color reference from its packed 32-bit value.
Parameters
- value System.UInt32
Methods
public override Int32 GetHashCode() #Int32public static Boolean op_Equality(OfficeArtColorReference left, OfficeArtColorReference right) #BooleanCompares two color references.
Parameters
- left OfficeIMO.Drawing.Binary.OfficeArtColorReference
- right OfficeIMO.Drawing.Binary.OfficeArtColorReference
public static Boolean op_Inequality(OfficeArtColorReference left, OfficeArtColorReference right) #BooleanCompares two color references.
Parameters
- left OfficeIMO.Drawing.Binary.OfficeArtColorReference
- right OfficeIMO.Drawing.Binary.OfficeArtColorReference
public override String ToString() #Stringpublic Boolean TryResolve(Func<Byte, Nullable<OfficeColor>> schemeColorResolver, out OfficeColor color) #BooleanResolves the reference to RGB. Scheme colors are delegated to schemeColorResolver; system and palette indexes remain unresolved.
Parameters
- schemeColorResolver System.Func{System.Byte,System.Nullable{OfficeIMO.Drawing.OfficeColor}}
- color OfficeIMO.Drawing.OfficeColor@
Inherited Methods
Properties
public UInt32 Value { get; } #Gets the packed 32-bit value.
public Byte Red { get; } #Gets the red byte or scheme index.
public Byte Green { get; } #Gets the green byte.
public Byte Blue { get; } #Gets the blue byte.
public Byte Flags { get; } #Gets the OfficeArt color flags.
public Boolean IsIgnored { get; } #Gets whether the high byte marks this reference as ignored.
public Boolean IsSchemeIndex { get; } #Gets whether the color resolves through the current application color scheme.
public Boolean IsSystemIndex { get; } #Gets whether the value uses a system color index.
public Boolean IsPaletteIndex { get; } #Gets whether the value uses a palette index.
public Nullable<Byte> SchemeIndex { get; } #Gets the scheme index when IsSchemeIndex is true.