Class Led
  Represents a placeable element.
 
  
  
  
  
  
  Assembly: RGB.NET.Core.dll
  Syntax
  
    public sealed class Led : Placeable, IBindable, INotifyPropertyChanged, IPlaceable
   
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  AbsoluteBoundary
  Gets a rectangle representing the logical location of the Led on the RGBSurface.
 
  
  Declaration
  
    public Rectangle AbsoluteBoundary { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Color
  
  
  Declaration
  
    public Color Color { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  CustomData
  Gets the provider-specific data associated with this led.
 
  
  Declaration
  
    public object? CustomData { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Device
  
  
  Declaration
  
    public IRGBDevice Device { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Id
  
  
  Declaration
  
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  IsDirty
  Indicates whether the Led is about to change it's color.
 
  
  Declaration
  
    public bool IsDirty { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  
  Gets or sets some custom metadata of this led.
 
  
  Declaration
  
    public object? LayoutMetadata { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  RequestedColor
  Gets a copy of the Color the LED should be set to on the next update.
Null if there is no update-request for the next update.
 
  
  Declaration
  
    public Color? RequestedColor { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Shape
  
  
  Declaration
  
    public Shape Shape { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  ShapeData
  
  
  Declaration
  
    public string? ShapeData { get; set; }
   
  Property Value
  
  Methods
  
    |
    Edit this page
  
  
    View Source
  
  
  ToString()
  Converts the Id and the Color of this Led to a human-readable string.
 
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | string | 
        A string that contains the Id and the Color of this Led. For example "Enter [A: 255, R: 255, G: 0, B: 0]". 
 | 
      
    
  
  Overrides
  
  
    |
    Edit this page
  
  
    View Source
  
  
  UpdateActualPlaceableData()
  
  
  Declaration
  
    protected override void UpdateActualPlaceableData()
   
  Overrides
  
  Operators
  
    |
    Edit this page
  
  
    View Source
  
  
  implicit operator Color(Led)
  
  
  Declaration
  
    public static implicit operator Color(Led led)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Led | 
        led | 
        The Led to convert. 
 | 
      
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  implicit operator Rectangle(Led)
  
  
  Declaration
  
    public static implicit operator Rectangle(Led led)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Led | 
        led | 
        The Led to convert. 
 | 
      
    
  
  Returns
  
  Implements