MS Chart Rectangular Annotation width in percent and not pixel

前端 未结 3 489
天命终不由人
天命终不由人 2020-11-29 13:47

why is it that the MS chart rectangular annotation width is in percent and not pixel like msdn says it is? https://msdn.microsoft.com/en-us/library/system.windows.forms.data

3条回答
  •  死守一世寂寞
    2020-11-29 14:14

    I know the OP wanted to set the width in pixels, but in case some people (like me) want to set the width neither in pixels nor in %, but according to the actual values, just set :

    annotation.IsSizeAlwaysRelative = False
    annotation.Width = whatEverValue
    

提交回复
热议问题