API Reference
OfficeArtColorReference
Represents the packed OfficeArtCOLORREF value defined by MS-ODRAW.
Inheritance
- ValueType
- OfficeArtColorReference
Usage
Explore 12 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property OfficeArtGradientStop.Color
- Property OfficeArtPictureProperties.RecolorColor
- Property OfficeArtPictureProperties.TransparentColor
- Property OfficeArtShapeStyle.FillBackColor
- Property OfficeArtShapeStyle.FillColor
- Property OfficeArtShapeStyle.LineColor
- Property OfficeArtShapeStyle.ShadowColor
Accepted by parameters 5
Constructors
public OfficeArtColorReference(UInt32 value) #Creates a color reference from its packed 32-bit value.
Parameters
- value System.UInt32
Methods
public Boolean Equals(OfficeArtColorReference other) #BooleanIndicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.Binary.OfficeArtColorReference
- An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
public override Boolean Equals(Object? obj) #BooleanIndicates whether this instance and a specified object are equal.
Parameters
- obj System.Object?
- The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.
public override Int32 GetHashCode() #Int32Returns the hash code for this instance.
Returns
A 32-bit signed integer that is the hash code for this instance.
public 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() #StringReturns the fully qualified type name of this instance.
Returns
The fully qualified type name.
public Boolean TryResolve(Func<Byte, 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, OfficeIMO.Drawing.OfficeColor?>?
- color OfficeIMO.Drawing.OfficeColor
Inherited Methods
Properties
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 Byte? SchemeIndex { get; } #Gets the scheme index when OfficeArtColorReference.IsSchemeIndex is true.