コード例 #1
0
 public ElementList <GraphicElements> GetList(ElementPriority _p)
 {
     // switch on the priority to get the right element list.
     return(_p switch
     {
         ElementPriority.VeryLow => VeryLowElements,
         ElementPriority.Low => LowElements,
         ElementPriority.Normal => NormalElements,
         ElementPriority.High => HighElements,
         ElementPriority.VeryHigh => VeryHighElements,
         ElementPriority.SuperHigh => SuperHighElements,
         ElementPriority.BeyondHigh => BeyondHighElements,
         ElementPriority.TopMost => TopMostElements,
         _ => null,
     });
コード例 #2
0
 public GraphicElements[] GetArray(ElementPriority _p)
 {
     // get the array of the list.
     return(GetList(_p).GetArray());
 }