コード例 #1
0
        private GeoFontViewModel ConvertToNotifiedGeoFont(GeoFont geoFont)
        {
            GeoFontViewModel newFont = new GeoFontViewModel();

            newFont.FromGeoFont(geoFont);
            return(newFont);
        }
コード例 #2
0
        public static void LoadFromLegendItem(this LegendItemViewModel legendItemViewModel, LegendItem legendItem)
        {
            legendItemViewModel.ImageStyle = legendItem.ImageStyle;
            legendItemViewModel.ImageMask  = legendItem.ImageMask;

            legendItemViewModel.Text           = legendItem.TextStyle.TextColumnName;
            legendItemViewModel.TextSolidBrush = legendItem.TextStyle.TextSolidBrush;
            legendItemViewModel.TextMask       = legendItem.TextMask;

            GeoFontViewModel geoFontViewModel = new GeoFontViewModel();

            geoFontViewModel.FromGeoFont(legendItem.TextStyle.Font);
            legendItemViewModel.NotifiedGeoFont = geoFontViewModel;

            legendItemViewModel.BackgroundMask = legendItem.BackgroundMask;

            legendItemViewModel.ImageLeftPadding   = legendItem.ImageLeftPadding;
            legendItemViewModel.ImageRightPadding  = legendItem.ImageRightPadding;
            legendItemViewModel.ImageTopPadding    = legendItem.ImageTopPadding;
            legendItemViewModel.ImageBottomPadding = legendItem.ImageBottomPadding;

            legendItemViewModel.TextLeftPadding   = legendItem.TextLeftPadding;
            legendItemViewModel.TextRightPadding  = legendItem.TextRightPadding;
            legendItemViewModel.TextTopPadding    = legendItem.TextTopPadding;
            legendItemViewModel.TextBottomPadding = legendItem.TextBottomPadding;

            legendItemViewModel.LeftPadding   = legendItem.LeftPadding;
            legendItemViewModel.RightPadding  = legendItem.RightPadding;
            legendItemViewModel.TopPadding    = legendItem.TopPadding;
            legendItemViewModel.BottomPadding = legendItem.BottomPadding;
        }