1"use strict";(self.webpackChunkavalonia_docs=self.webpackChunkavalonia_docs||[]).push([[868],{15946:(e,a,r)=>{r.r(a),r.d(a,{assets:()=>n,contentTitle:()=>t,default:()=>m,frontMatter:()=>d,metadata:()=>s,toc:()=>c});const s=JSON.parse('{"id":"avalonia/media/immutable/immutablesolidcolorbrush","title":"ImmutableSolidColorBrush","description":"ImmutableSolidColorBrush Class","source":"@site/api/avalonia/media/immutable/immutablesolidcolorbrush.mdx","sourceDirName":"avalonia/media/immutable","slug":"/avalonia/media/immutable/immutablesolidcolorbrush","permalink":"/api/avalonia/media/immutable/immutablesolidcolorbrush","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"ImmutableSolidColorBrush","hide_title":true,"slug":"/avalonia/media/immutable/immutablesolidcolorbrush","uid":"Avalonia.Media.Immutable.ImmutableSolidColorBrush","commentId":"T:Avalonia.Media.Immutable.ImmutableSolidColorBrush","docset":"avalonia-docs","packageId":"Avalonia","assembly":"Avalonia.Base","apiKind":"Class","generatedBy":"dotnet-apiref","namespace":"Avalonia.Media.Immutable","tfms":["net10.0"]},"sidebar":"apiSidebar","previous":{"title":"ImmutableRadialGradientBrush","permalink":"/api/avalonia/media/immutable/immutableradialgradientbrush"},"next":{"title":"ImmutableTextDecoration","permalink":"/api/avalonia/media/immutable/immutabletextdecoration"}}');var l=r(74848),i=r(28453),o=r(52014);const d={title:"ImmutableSolidColorBrush",hide_title:!0,slug:"/avalonia/media/immutable/immutablesolidcolorbrush",uid:"Avalonia.Media.Immutable.ImmutableSolidColorBrush",commentId:"T:Avalonia.Media.Immutable.ImmutableSolidColorBrush",docset:"avalonia-docs",packageId:"Avalonia",assembly:"Avalonia.Base",apiKind:"Class",generatedBy:"dotnet-apiref",namespace:"Avalonia.Media.Immutable",tfms:["net10.0"]},t=void 0,n={},c=[{value:"Definition",id:"definition",level:2},{value:"Constructors",id:"constructors",level:2},{value:"ImmutableSolidColorBrush overloads",id:"immutablesolidcolorbrush-overloads",level:3},{value:"ImmutableSolidColorBrush Constructor",id:"immutablesolidcolorbrush-constructor",level:4},{value:"Parameters",id:"parameters",level:5},{value:"ImmutableSolidColorBrush Constructor",id:"immutablesolidcolorbrush-constructor-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"ImmutableSolidColorBrush Constructor",id:"immutablesolidcolorbrush-constructor-2",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Methods",id:"methods",level:2},{value:"Equals overloads",id:"equals-overloads",level:3},{value:"Equals Method",id:"equals-method",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns",level:5},{value:"Equals Method",id:"equals-method-1",level:4},{value:"Parameters",id:"parameters-4",level:5},{value:"Returns",id:"returns-1",level:5},{value:"GetHashCode Method",id:"gethashcode-method",level:3},{value:"Returns",id:"returns-2",level:4},{value:"ToString Method",id:"tostring-method",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Properties",id:"properties",level:2},{value:"Color Property",id:"color-property",level:3},{value:"Opacity Property",id:"opacity-property",level:3},{value:"Transform Property",id:"transform-property",level:3},{value:"TransformOrigin Property",id:"transformorigin-property",level:3}];function h(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,l.jsxs)(o.A,{children:[(0,l.jsx)("h1",{className:"apiref-page__title",children:"ImmutableSolidColorBrush Class"}),(0,l.jsx)(a.h2,{id:"definition",children:"Definition"}),(0,l.jsxs)("div",{className:"apiref-page__definition-meta",children:[(0,l.jsxs)("div",{className:"apiref-page__meta-row",children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Namespace:"}),(0,l.jsx)("a",{href:"./",children:"Avalonia.Media.Immutable"})]}),(0,l.jsxs)("div",{className:"apiref-page__meta-row",children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Assembly:"}),(0,l.jsx)("code",{children:"Avalonia.Base"})]}),(0,l.jsxs)("div",{className:"apiref-page__meta-row",children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Package:"}),(0,l.jsx)("code",{children:"Avalonia"})]}),(0,l.jsxs)("div",{className:"apiref-page__meta-row",children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Source:"}),(0,l.jsx)("a",{href:"https://github.com/AvaloniaUI/Avalonia/blob/main/src/Avalonia.Base/Media/Immutable/ImmutableSolidColorBrush.cs",children:"ImmutableSolidColorBrush.cs"})]})]}),(0,l.jsx)("div",{className:"apiref-page__lead",children:(0,l.jsx)(a.p,{children:"Fills an area with a solid color."})}),(0,l.jsx)("div",{className:"apiref-page__signature",children:(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public class ImmutableSolidColorBrush\n"})})}),(0,l.jsxs)("div",{className:"apiref-page__relations",children:[(0,l.jsx)("div",{className:"apiref-page__meta-row",children:(0,l.jsxs)(a.p,{children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Inheritance:"})," object ",(0,l.jsx)("span",{className:"apiref-page__relation-separator",children:"->"})," ImmutableSolidColorBrush"]})}),(0,l.jsx)("div",{className:"apiref-page__meta-row",children:(0,l.jsxs)(a.p,{children:[(0,l.jsx)("span",{className:"apiref-page__meta-label",children:"Implements:"})," ",(0,l.jsx)("a",{href:"../ibrush",children:"IBrush"}),", ",(0,l.jsx)("a",{href:"../iimmutablebrush",children:"IImmutableBrush"}),", ",(0,l.jsx)("a",{href:"../iimmutablesolidcolorbrush",children:"IImmutableSolidColorBrush"}),", ",(0,l.jsx)("a",{href:"../isolidcolorbrush",children:"ISolidColorBrush"}),", IEquatable<ImmutableSolidColorBrush>"]})})]}),(0,l.jsx)(a.h2,{id:"constructors",children:"Constructors"}),(0,l.jsxs)(a.table,{children:[(0,l.jsx)(a.thead,{children:(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.th,{children:"Name"}),(0,l.jsx)(a.th,{children:"Description"})]})}),(0,l.jsx)(a.tbody,{children:(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-b2964f0ad0",children:"ImmutableSolidColorBrush (3 overloads)"})}),(0,l.jsxs)(a.td,{children:["Initializes a new instance of the ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutablesolidcolorbrush",children:"Avalonia.Media.Immutable.ImmutableSolidColorBrush"})," class."]})]})})]}),(0,l.jsx)("span",{id:"uid-b2964f0ad0"}),(0,l.jsx)(a.h3,{id:"immutablesolidcolorbrush-overloads",children:"ImmutableSolidColorBrush overloads"}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-4017cf5783"}),(0,l.jsx)(a.h4,{id:"immutablesolidcolorbrush-constructor",children:"ImmutableSolidColorBrush Constructor"}),(0,l.jsxs)(a.p,{children:["Initializes a new instance of the ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutablesolidcolorbrush",children:"Avalonia.Media.Immutable.ImmutableSolidColorBrush"})," class."]}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public ImmutableSolidColorBrush(Avalonia.Media.Color color, double opacity, Avalonia.Media.Immutable.ImmutableTransform transform)\n"})}),(0,l.jsx)(a.h5,{id:"parameters",children:"Parameters"}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"color"})," ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/color",children:"Avalonia.Media.Color"})]}),(0,l.jsx)(a.p,{children:"The color to use."}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"opacity"})," double"]}),(0,l.jsx)(a.p,{children:"The opacity of the brush."}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"transform"})," ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutabletransform",children:"Avalonia.Media.Immutable.ImmutableTransform"})]}),(0,l.jsx)(a.p,{children:"The transform of the brush."})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-ab0b986eb7"}),(0,l.jsx)(a.h4,{id:"immutablesolidcolorbrush-constructor-1",children:"ImmutableSolidColorBrush Constructor"}),(0,l.jsxs)(a.p,{children:["Initializes a new instance of the ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutablesolidcolorbrush",children:"Avalonia.Media.Immutable.ImmutableSolidColorBrush"})," class."]}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public ImmutableSolidColorBrush(Avalonia.Media.ISolidColorBrush source)\n"})}),(0,l.jsx)(a.h5,{id:"parameters-1",children:"Parameters"}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"source"})," ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/isolidcolorbrush",children:"Avalonia.Media.ISolidColorBrush"})]}),(0,l.jsx)(a.p,{children:"The brush from which this brush's properties should be copied."})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-9c335816da"}),(0,l.jsx)(a.h4,{id:"immutablesolidcolorbrush-constructor-2",children:"ImmutableSolidColorBrush Constructor"}),(0,l.jsxs)(a.p,{children:["Initializes a new instance of the ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutablesolidcolorbrush",children:"Avalonia.Media.Immutable.ImmutableSolidColorBrush"})," class."]}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public ImmutableSolidColorBrush(uint color)\n"})}),(0,l.jsx)(a.h5,{id:"parameters-2",children:"Parameters"}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"color"})," uint"]}),(0,l.jsx)(a.p,{children:"The color to use."})]}),(0,l.jsx)(a.h2,{id:"methods",children:"Methods"}),(0,l.jsxs)(a.table,{children:[(0,l.jsx)(a.thead,{children:(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.th,{children:"Name"}),(0,l.jsx)(a.th,{children:"Description"})]})}),(0,l.jsxs)(a.tbody,{children:[(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-81cb1b8252",children:"Equals (2 overloads)"})}),(0,l.jsx)(a.td,{children:"No summary available."})]}),(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-97558080ec",children:"GetHashCode"})}),(0,l.jsx)(a.td,{children:"No summary available."})]}),(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-5005dc788d",children:"ToString"})}),(0,l.jsx)(a.td,{children:"Returns a string representation of the brush."})]})]})]}),(0,l.jsx)("span",{id:"uid-81cb1b8252"}),(0,l.jsx)(a.h3,{id:"equals-overloads",children:"Equals overloads"}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-f5c50d0f3b"}),(0,l.jsx)(a.h4,{id:"equals-method",children:"Equals Method"}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public bool Equals(Avalonia.Media.Immutable.ImmutableSolidColorBrush other)\n"})}),(0,l.jsx)(a.h5,{id:"parameters-3",children:"Parameters"}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"other"})," ",(0,l.jsx)(a.a,{href:"/api/avalonia/media/immutable/immutablesolidcolorbrush",children:"Avalonia.Media.Immutable.ImmutableSolidColorBrush"})]}),(0,l.jsx)(a.h5,{id:"returns",children:"Returns"}),(0,l.jsx)(a.p,{children:"bool"})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-814be2e759"}),(0,l.jsx)(a.h4,{id:"equals-method-1",children:"Equals Method"}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public bool Equals(object obj)\n"})}),(0,l.jsx)(a.h5,{id:"parameters-4",children:"Parameters"}),(0,l.jsxs)(a.p,{children:[(0,l.jsx)(a.code,{children:"obj"})," object"]}),(0,l.jsx)(a.h5,{id:"returns-1",children:"Returns"}),(0,l.jsx)(a.p,{children:"bool"})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-97558080ec"}),(0,l.jsx)(a.h3,{id:"gethashcode-method",children:"GetHashCode Method"}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public int GetHashCode()\n"})}),(0,l.jsx)(a.h4,{id:"returns-2",children:"Returns"}),(0,l.jsx)(a.p,{children:"int"})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-5005dc788d"}),(0,l.jsx)(a.h3,{id:"tostring-method",children:"ToString Method"}),(0,l.jsx)(a.p,{children:"Returns a string representation of the brush."}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public string ToString()\n"})}),(0,l.jsx)(a.h4,{id:"returns-3",children:"Returns"}),(0,l.jsx)(a.p,{children:"string"}),(0,l.jsx)(a.p,{children:"A string representation of the brush."})]}),(0,l.jsx)(a.h2,{id:"properties",children:"Properties"}),(0,l.jsxs)(a.table,{children:[(0,l.jsx)(a.thead,{children:(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.th,{children:"Name"}),(0,l.jsx)(a.th,{children:"Description"})]})}),(0,l.jsxs)(a.tbody,{children:[(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-a4632b94c1",children:"Color"})}),(0,l.jsx)(a.td,{children:"Gets the color of the brush."})]}),(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-3ee45f50c4",children:"Opacity"})}),(0,l.jsx)(a.td,{children:"Gets the opacity of the brush."})]}),(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-7f7b5e1fec",children:"Transform"})}),(0,l.jsx)(a.td,{children:"Gets the transform of the brush."})]}),(0,l.jsxs)(a.tr,{children:[(0,l.jsx)(a.td,{children:(0,l.jsx)(a.a,{href:"#uid-a9dec65fbb",children:"TransformOrigin"})}),(0,l.jsx)(a.td,{children:"Gets the transform origin of the brush"})]})]})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-a4632b94c1"}),(0,l.jsx)(a.h3,{id:"color-property",children:"Color Property"}),(0,l.jsx)(a.p,{children:"Gets the color of the brush."}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public Avalonia.Media.Color Color { get; set; }\n"})})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-3ee45f50c4"}),(0,l.jsx)(a.h3,{id:"opacity-property",children:"Opacity Property"}),(0,l.jsx)(a.p,{children:"Gets the opacity of the brush."}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public double Opacity { get; set; }\n"})})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-7f7b5e1fec"}),(0,l.jsx)(a.h3,{id:"transform-property",children:"Transform Property"}),(0,l.jsx)(a.p,{children:"Gets the transform of the brush."}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public Avalonia.Media.ITransform Transform { get; set; }\n"})})]}),(0,l.jsxs)("section",{className:"apiref-page__member-entry",children:[(0,l.jsx)("span",{id:"uid-a9dec65fbb"}),(0,l.jsx)(a.h3,{id:"transformorigin-property",children:"TransformOrigin Property"}),(0,l.jsx)(a.p,{children:"Gets the transform origin of the brush"}),(0,l.jsx)(a.pre,{children:(0,l.jsx)(a.code,{className:"language-csharp",children:"public Avalonia.RelativePoint TransformOrigin { get; set; }\n"})})]})]})}function m(e={}){const{wrapper:a}={...(0,i.R)(),...e.components};return a?(0,l.jsx)(a,{...e,children:(0,l.jsx)(h,{...e})}):h(e)}},52014:(e,a,r)=>{r.d(a,{A:()=>d});var s=r(96540),l=r(63427),i=r(74848);
1function o(e,a){s.Children.forEach(e,(e=>{if(!(0,s.isValidElement)(e))return;const r=e.props;a(r.id),o(r.children,a)}))}function d({children:e}){return o(e,(0,l.A)().collectAnchor),(0,i.jsx)("div",{className:"apiref-page",children:e})}},28453:(e,a,r)=>{r.d(a,{R:()=>o,x:()=>d});var s=r(96540);const l={},i=s.createContext(l);function o(e){const a=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function d(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:o(e.components),s.createElement(i.Provider,{value:a},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.