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
Explore 182 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 68
- Property PdfAnnotation.EffectiveTextColor
- Property PdfBatesNumberingOptions.Color
- 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 PdfOptions.PdfXTransparencyBackground
- Property PdfPageBorder.Color
- Property PdfPanelBorder.Color
- Property PdfPanelStyle.Background
- Property PdfPanelStyle.BorderColor
- Property PdfParagraphBuilder.DefaultColor
- Property PdfRedactionApplyOptions.FillColor
- Property PdfRegionText.Color
- 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 PdfTextEditOptions.Color
- Property PdfTextMatch.Color
- Property PdfTextRun.BackgroundColor
- Property PdfTextRun.Color
- Property PdfTextRun.DecorationColor
- Property PdfTextStampOptions.Color
- Property PdfTextStyle.Color
- Property PdfTextWatermark.Color
- Property PdfVisibleSignatureAppearanceOptions.BackgroundColor
- Property PdfVisibleSignatureAppearanceOptions.BorderColor
- Property PdfVisibleSignatureAppearanceOptions.TextColor
- Property PdfWatermarkOptions.Color
Accepted by parameters 114
- Method PdfContentBuilder.Bullets
- Method PdfContentBuilder.Ellipse
- Method PdfContentBuilder.Ellipse
- Method PdfContentBuilder.FreeTextAnnotation
- Method PdfContentBuilder.FreeTextAnnotation
- Method PdfContentBuilder.FreeTextAnnotation
- Method PdfContentBuilder.H1
- Method PdfContentBuilder.H2
- Method PdfContentBuilder.H3
- Method PdfContentBuilder.Heading
- Method PdfContentBuilder.HighlightAnnotation
- Method PdfContentBuilder.HR
- Method PdfContentBuilder.Line
- Method PdfContentBuilder.Numbered
- Method PdfContentBuilder.PanelParagraph
- Method PdfContentBuilder.Paragraph
- Method PdfContentBuilder.Path
- Method PdfContentBuilder.Path
- Method PdfContentBuilder.Polygon
- Method PdfContentBuilder.Polygon
- Method PdfContentBuilder.Rectangle
- Method PdfContentBuilder.Rectangle
- Method PdfContentBuilder.RichBullets
- Method PdfContentBuilder.RichNumbered
- Method PdfContentBuilder.RoundedRectangle
- Method PdfContentBuilder.RoundedRectangle
- Method PdfContentBuilder.Text
- Method PdfContentBuilder.TextAnnotation
- Method PdfElementBuilder.Background
- Method PdfElementBuilder.Border
- Method PdfFooterBuilder.Color
- Method PdfHeaderBuilder.Color
- Constructor PdfInlineBox.PdfInlineBox
- Constructor PdfInlineBox.PdfInlineBox
- 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 PdfPageBuilder.Background
- Method PdfPageBuilder.BackgroundBottomBand
- Method PdfPageBuilder.BackgroundBottomBand
- Method PdfPageBuilder.BackgroundEllipse
- Method PdfPageBuilder.BackgroundEllipse
- Method PdfPageBuilder.BackgroundLeftBand
- Method PdfPageBuilder.BackgroundLeftBand
- Method PdfPageBuilder.BackgroundRectangle
- Method PdfPageBuilder.BackgroundRectangle
- Method PdfPageBuilder.BackgroundRightBand
- Method PdfPageBuilder.BackgroundRightBand
- Method PdfPageBuilder.BackgroundRoundedRectangle
- Method PdfPageBuilder.BackgroundRoundedRectangle
- Method PdfPageBuilder.BackgroundTopBand
- Method PdfPageBuilder.BackgroundTopBand
- Method PdfPageBuilder.EvenPagesWatermark
- Method PdfPageBuilder.FirstPageWatermark
- Method PdfPageBuilder.PageBorder
- Method PdfPageBuilder.Watermark
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.FreeTextAnnotation
- Method PdfPageCanvas.HighlightAnnotation
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.Text
- Method PdfPageCanvas.TextAnnotation
- 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 PdfRowBuilder.ColumnSeparator
- Constructor PdfTextRun.PdfTextRun
- Constructor PdfTextRun.PdfTextRun
- Constructor PdfTextRun.PdfTextRun
- Method PdfTextRun.Bolded
- Method PdfTextRun.Bolded
- Method PdfTextRun.BoldItalic
- Method PdfTextRun.BoldItalic
- Method PdfTextRun.BoldUnderlined
- Method PdfTextRun.BoldUnderlined
- Method PdfTextRun.Italicized
- Method PdfTextRun.Italicized
- Method PdfTextRun.Link
- Method PdfTextRun.Link
- Method PdfTextRun.LinkToBookmark
- Method PdfTextRun.LinkToBookmark
- Method PdfTextRun.Normal
- Method PdfTextRun.Normal
- Method PdfTextRun.Strikethrough
- Method PdfTextRun.Strikethrough
- Method PdfTextRun.Subscript
- Method PdfTextRun.Subscript
- Method PdfTextRun.Superscript
- Method PdfTextRun.Superscript
- Method PdfTextRun.Underlined
- Method PdfTextRun.Underlined
- Method PdfTextStyleBuilder.Color
Constructors
Methods
public static PdfColor FromOfficeColor(OfficeColor color) #PdfColorCreates a PDF RGB color from a shared OfficeIMO color. Alpha is ignored because opacity is handled separately from RGB color components.
Parameters
- color OfficeIMO.Drawing.OfficeColor
public static PdfColor? FromOfficeColorOrNull(OfficeColor color) #PdfColor?Creates a PDF RGB color from a shared OfficeIMO color, returning null for fully transparent colors. Partially transparent colors retain their RGB components; apply opacity separately.
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
public override Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public static PdfColor LightGray { get; } #Light gray color useful for fills and separators.