Back to Devexpress

dxGaugeGetRegisteredStyleNames(TdxGaugeScaleType,TStringList) Method

vcl-dxgaugecustomscale-dot-dxgaugegetregisteredstylenames-x28-82788a83-x29.md

latest1.9 KB
Original Source

dxGaugeGetRegisteredStyleNames(TdxGaugeScaleType,TStringList) Method

Extracts the list of visual styles available for the specified scale type.

Declaration

delphi
procedure dxGaugeGetRegisteredStyleNames(AScaleType: TdxGaugeScaleType; AList: TStringList);

Parameters

NameType
AScaleTypeTdxGaugeScaleType
AListTStringList

Remarks

Use this procedure to identify which visual styles are currently available for the scale type specified as the AScaleType parameter. The AList parameter stores the list of style names extracted by the dxGaugeGetRegisteredStyleNames procedure.

The following code example extracts the full list of visual styles currently supported by circular scales and outputs it to the TcxMemo visual component:

delphi
var
  AList: TStringList;
  I: Integer;
//...
  AList := TStringList.Create;
  dxGaugeGetRegisteredStyleNames(stCircularScale, AList);
  cxMemo1.Clear;
  for I := 0 to AList.Count - 1 do
    cxMemo1.Lines.Add(AList.Strings[I]);
cpp
TStringList* AList;
  AList = new TStringList;
  dxGaugeGetRegisteredStyleNames(stCircularScale, AList);
  cxMemo1->Clear();
  for (int I = 0; I < AList->Count; I++) {
    cxMemo1->Lines->Add(AList->Strings[I]); }

Note

If you need to obtain the list of predefined style names, use the dxGaugeGetPredefinedStyleNames method instead.

See Also

dxGaugeCustomScale Unit