API Reference
PdfColor
Represents an RGB color where each component is expressed in the 0..1 range. Use with writer APIs to color text and vector shapes.
Inheritance
- ValueType
- PdfColor
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 PanelStyle.Background
- Property PanelStyle.BorderColor
- Property PdfAnnotation.EffectiveTextColor
- Property PdfCanvasTextBoxStyle.Background
- Property PdfCanvasTextBoxStyle.BorderColor
- Property PdfCanvasTextBoxStyle.TextColor
- Property PdfCellBorder.Color
- Property PdfCellBorderSide.Color
- Property PdfCellDataBar.Color
- Property PdfCellIcon.Color
- Method PdfColor.FromOfficeColor
- Method PdfColor.FromOfficeColorOrNull
- Method PdfColor.FromRgb
- Method PdfColor.op_Implicit
- Property PdfColor.Black
- Property PdfColor.Gray
- Property PdfColor.LightGray
- Property PdfColor.White
- Property PdfFormFieldStyle.BackgroundColor
- Property PdfFormFieldStyle.BorderColor
- Property PdfFormFieldStyle.MarkColor
- Property PdfFormFieldStyle.TextColor
- Property PdfHeadingStyle.Color
- Property PdfHorizontalRuleStyle.Color
- Property PdfInlineBox.Background
- Property PdfInlineBox.BorderColor
- Property PdfListStyle.Color
- Property PdfListStyle.MarkerColor
- Property PdfMultiColumnOptions.SeparatorColor
- Property PdfOptions.BackgroundColor
- Property PdfOptions.DefaultTextColor
- Property PdfOptions.FooterTextColor
- Property PdfOptions.HeaderTextColor
- Property PdfPageBorder.Color
- Property PdfPanelBorder.Color
- Property PdfParagraphBuilder.DefaultColor
- Property PdfRedactionApplyOptions.FillColor
- Property PdfRowStyle.ColumnSeparatorColor
- Property PdfStampAnnotationOptions.FillColor
- Property PdfStampAnnotationOptions.StrokeColor
- Property PdfTableStyle.BodyColumnFills
- Property PdfTableStyle.BorderColor
- Property PdfTableStyle.CaptionColor
- Property PdfTableStyle.CellFills
- Property PdfTableStyle.FooterFill
- Property PdfTableStyle.FooterSeparatorColor
- Property PdfTableStyle.FooterTextColor
- Property PdfTableStyle.HeaderFill
- Property PdfTableStyle.HeaderSeparatorColor
- Property PdfTableStyle.HeaderTextColor
- Property PdfTableStyle.RowSeparatorColor
- Property PdfTableStyle.RowStripeFill
- Property PdfTableStyle.TextColor
- Property PdfTextStampOptions.Color
- Property PdfTextStyle.Color
- Property PdfTextWatermark.Color
- Property PdfVisibleSignatureAppearanceOptions.BackgroundColor
- Property PdfVisibleSignatureAppearanceOptions.BorderColor
- Property PdfVisibleSignatureAppearanceOptions.TextColor
- Property TextRun.BackgroundColor
- Property TextRun.Color
Accepted by parameters
- Method PdfDocument.Background
- Method PdfDocument.BackgroundBottomBand
- Method PdfDocument.BackgroundBottomBand
- Method PdfDocument.BackgroundEllipse
- Method PdfDocument.BackgroundEllipse
- Method PdfDocument.BackgroundLeftBand
- Method PdfDocument.BackgroundLeftBand
- Method PdfDocument.BackgroundRectangle
- Method PdfDocument.BackgroundRectangle
- Method PdfDocument.BackgroundRightBand
- Method PdfDocument.BackgroundRightBand
- Method PdfDocument.BackgroundRoundedRectangle
- Method PdfDocument.BackgroundRoundedRectangle
- Method PdfDocument.BackgroundTopBand
- Method PdfDocument.BackgroundTopBand
- Method PdfDocument.Bullets
- Method PdfDocument.Ellipse
- Method PdfDocument.Ellipse
- Method PdfDocument.FreeTextAnnotation
- Method PdfDocument.FreeTextAnnotation
- Method PdfDocument.FreeTextAnnotation
- Method PdfDocument.H1
- Method PdfDocument.H2
- Method PdfDocument.H3
- Method PdfDocument.HighlightAnnotation
- Method PdfDocument.HR
- Method PdfDocument.Line
- Method PdfDocument.Numbered
- Method PdfDocument.PageBorder
- Method PdfDocument.Panel
- Method PdfDocument.PanelParagraph
- Method PdfDocument.Paragraph
- Method PdfDocument.Path
- Method PdfDocument.Path
- Method PdfDocument.Polygon
- Method PdfDocument.Polygon
- Method PdfDocument.Rectangle
- Method PdfDocument.Rectangle
- Method PdfDocument.RichBullets
- Method PdfDocument.RichNumbered
- Method PdfDocument.RoundedRectangle
- Method PdfDocument.RoundedRectangle
- Method PdfDocument.TextAnnotation
- Method PdfDocument.Watermark
- Method PdfElementCompose.Bullets
- Method PdfElementCompose.Ellipse
- Method PdfElementCompose.Ellipse
- Method PdfElementCompose.FreeTextAnnotation
- Method PdfElementCompose.FreeTextAnnotation
- Method PdfElementCompose.FreeTextAnnotation
- Method PdfElementCompose.H1
- Method PdfElementCompose.H2
- Method PdfElementCompose.H3
- Method PdfElementCompose.HighlightAnnotation
- Method PdfElementCompose.HR
- Method PdfElementCompose.Line
- Method PdfElementCompose.Numbered
- Method PdfElementCompose.Panel
- Method PdfElementCompose.PanelParagraph
- Method PdfElementCompose.Paragraph
- Method PdfElementCompose.Path
- Method PdfElementCompose.Path
- Method PdfElementCompose.Polygon
- Method PdfElementCompose.Polygon
- Method PdfElementCompose.Rectangle
- Method PdfElementCompose.Rectangle
- Method PdfElementCompose.RichBullets
- Method PdfElementCompose.RichNumbered
- Method PdfElementCompose.RoundedRectangle
- Method PdfElementCompose.RoundedRectangle
- Method PdfElementCompose.TextAnnotation
- Method PdfFooterCompose.Color
- Method PdfHeaderCompose.Color
- Constructor PdfInlineBox.PdfInlineBox
- Constructor PdfInlineBox.PdfInlineBox
- Method PdfItemCompose.Bullets
- Method PdfItemCompose.Ellipse
- Method PdfItemCompose.Ellipse
- Method PdfItemCompose.FreeTextAnnotation
- Method PdfItemCompose.FreeTextAnnotation
- Method PdfItemCompose.FreeTextAnnotation
- Method PdfItemCompose.H1
- Method PdfItemCompose.H2
- Method PdfItemCompose.H3
- Method PdfItemCompose.HighlightAnnotation
- Method PdfItemCompose.HR
- Method PdfItemCompose.Line
- Method PdfItemCompose.Numbered
- Method PdfItemCompose.Panel
- Method PdfItemCompose.PanelParagraph
- Method PdfItemCompose.Paragraph
- Method PdfItemCompose.Path
- Method PdfItemCompose.Path
- Method PdfItemCompose.Polygon
- Method PdfItemCompose.Polygon
- Method PdfItemCompose.Rectangle
- Method PdfItemCompose.Rectangle
- Method PdfItemCompose.RichBullets
- Method PdfItemCompose.RichNumbered
- Method PdfItemCompose.RoundedRectangle
- Method PdfItemCompose.RoundedRectangle
- Method PdfItemCompose.TextAnnotation
- Method PdfPageBackgroundShape.BottomBand
- Method PdfPageBackgroundShape.BottomBand
- Method PdfPageBackgroundShape.Ellipse
- Method PdfPageBackgroundShape.Ellipse
- Method PdfPageBackgroundShape.LeftBand
- Method PdfPageBackgroundShape.LeftBand
- Method PdfPageBackgroundShape.Rectangle
- Method PdfPageBackgroundShape.Rectangle
- Method PdfPageBackgroundShape.RightBand
- Method PdfPageBackgroundShape.RightBand
- Method PdfPageBackgroundShape.RoundedRectangle
- Method PdfPageBackgroundShape.RoundedRectangle
- Method PdfPageBackgroundShape.TopBand
- Method PdfPageBackgroundShape.TopBand
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.HighlightAnnotation
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.TextAnnotation
- Method PdfPageCompose.Background
- Method PdfPageCompose.BackgroundBottomBand
- Method PdfPageCompose.BackgroundBottomBand
- Method PdfPageCompose.BackgroundEllipse
- Method PdfPageCompose.BackgroundEllipse
- Method PdfPageCompose.BackgroundLeftBand
- Method PdfPageCompose.BackgroundLeftBand
- Method PdfPageCompose.BackgroundRectangle
- Method PdfPageCompose.BackgroundRectangle
- Method PdfPageCompose.BackgroundRightBand
- Method PdfPageCompose.BackgroundRightBand
- Method PdfPageCompose.BackgroundRoundedRectangle
- Method PdfPageCompose.BackgroundRoundedRectangle
- Method PdfPageCompose.BackgroundTopBand
- Method PdfPageCompose.BackgroundTopBand
- Method PdfPageCompose.EvenPagesWatermark
- Method PdfPageCompose.FirstPageWatermark
- Method PdfPageCompose.PageBorder
- Method PdfPageCompose.Watermark
- Constructor PdfParagraphBuilder.PdfParagraphBuilder
- Method PdfParagraphBuilder.BackgroundColor
- Method PdfParagraphBuilder.Bold
- Method PdfParagraphBuilder.Color
- Method PdfParagraphBuilder.InlineBox
- Method PdfParagraphBuilder.InlineBox
- Method PdfParagraphBuilder.Italic
- Method PdfParagraphBuilder.Link
- Method PdfParagraphBuilder.LinkToBookmark
- Method PdfParagraphBuilder.Strikethrough
- Method PdfParagraphBuilder.Subscript
- Method PdfParagraphBuilder.Superscript
- Method PdfParagraphBuilder.Underlined
- Method PdfRowColumnCompose.Bullets
- Method PdfRowColumnCompose.Ellipse
- Method PdfRowColumnCompose.Ellipse
- Method PdfRowColumnCompose.FreeTextAnnotation
- Method PdfRowColumnCompose.FreeTextAnnotation
- Method PdfRowColumnCompose.FreeTextAnnotation
- Method PdfRowColumnCompose.H1
- Method PdfRowColumnCompose.H2
- Method PdfRowColumnCompose.H3
- Method PdfRowColumnCompose.HighlightAnnotation
- Method PdfRowColumnCompose.HR
- Method PdfRowColumnCompose.Line
- Method PdfRowColumnCompose.Numbered
- Method PdfRowColumnCompose.Panel
- Method PdfRowColumnCompose.PanelParagraph
- Method PdfRowColumnCompose.Paragraph
- Method PdfRowColumnCompose.Path
- Method PdfRowColumnCompose.Path
- Method PdfRowColumnCompose.Polygon
- Method PdfRowColumnCompose.Polygon
- Method PdfRowColumnCompose.Rectangle
- Method PdfRowColumnCompose.Rectangle
- Method PdfRowColumnCompose.RichBullets
- Method PdfRowColumnCompose.RichNumbered
- Method PdfRowColumnCompose.RoundedRectangle
- Method PdfRowColumnCompose.RoundedRectangle
- Method PdfRowColumnCompose.TextAnnotation
- Method PdfRowCompose.ColumnSeparator
- Method PdfTextStyleCompose.Color
- Constructor TextRun.TextRun
- Constructor TextRun.TextRun
- Method TextRun.Bolded
- Method TextRun.Bolded
- Method TextRun.BoldItalic
- Method TextRun.BoldItalic
- Method TextRun.BoldUnderlined
- Method TextRun.BoldUnderlined
- Method TextRun.Italicized
- Method TextRun.Italicized
- Method TextRun.Link
- Method TextRun.Link
- Method TextRun.LinkToBookmark
- Method TextRun.LinkToBookmark
- Method TextRun.Normal
- Method TextRun.Normal
- Method TextRun.Strikethrough
- Method TextRun.Strikethrough
- Method TextRun.Subscript
- Method TextRun.Subscript
- Method TextRun.Superscript
- Method TextRun.Superscript
- Method TextRun.Underlined
- Method TextRun.Underlined
Constructors
Methods
public static PdfColor FromOfficeColor(OfficeColor color) #PdfColorCreates a PDF RGB color from a shared OfficeIMO color. Alpha is ignored because the current PDF writer does not yet support transparency.
Parameters
- color OfficeIMO.Drawing.OfficeColor
public static Nullable<PdfColor> FromOfficeColorOrNull(OfficeColor color) #Nullable<PdfColor>Creates a PDF RGB color from a shared OfficeIMO color, returning null for fully transparent colors. Partially transparent colors are converted to their RGB components until PDF transparency is supported.
Parameters
- color OfficeIMO.Drawing.OfficeColor
public static PdfColor FromRgb(Byte r, Byte g, Byte b) #PdfColorCreates a color from 0..255 byte RGB components.
Parameters
- r System.Byte
- g System.Byte
- b System.Byte
public static PdfColor op_Implicit(OfficeColor color) #PdfColorConverts a shared OfficeIMO color to a PDF RGB color.
Parameters
- color OfficeIMO.Drawing.OfficeColor
public OfficeColor ToOfficeColor(Byte alpha = 255) #OfficeColorConverts this color to the shared OfficeIMO color type.
Parameters
- alpha System.Byte = 255
Inherited Methods
Properties
public static PdfColor Black { get; } #Pure black color (#000000).
public static PdfColor White { get; } #Pure white color (#FFFFFF).
public static PdfColor LightGray { get; } #Light gray color useful for fills and separators.
public static PdfColor Gray { get; } #Mid gray color useful for text and borders.