Description: ArcEngine in ILegend and ILegendItem people to use do not always feel satisfied, especially AdjustColumns and Item. So imagine the legend PageLayout lot Element combination, to re-implement a legend based on IElement class. Legend class class diagram can refer to the attached drawing legend. Bmp. In addition, in the annex to the sample program, sample mxd, there is source code.
To Search:
File list (Check if you may need any files):
TestCustomLegendDll\CustomLegendClassByGxp\bin\Debug\ComBasic.dll
...................\......................\...\.....\ComMap.dll
...................\......................\...\.....\CustomLegendClassByGxp.dll
...................\......................\...\.....\CustomLegendClassByGxp.pdb
...................\......................\...\.....\DevComponents.DotNetBar2.dll
...................\......................\...\.....\MarkerLib.dll
...................\......................\...\.....\Microsoft.Office.Interop.Excel.dll
...................\......................\...\.....\Microsoft.Vbe.Interop.dll
...................\......................\...\.....\NLog.dll
...................\......................\...\.....\office.dll
...................\......................\CustomLegendClassByGxp.csproj
...................\......................\Legend\ComLayout.cs
...................\......................\......\ComLegend.cs
...................\......................\......\CustomComLegendItem.cs
...................\......................\......\FrameItem.cs
...................\......................\......\GridLineItem.cs
...................\......................\......\LegendPump.cs
...................\......................\......\PageLayoutLegend.cs
...................\......................\......\PageLayoutLegendItem.cs
...................\......................\......\StandardLegendItem.cs
...................\......................\......\TitleItem.cs
...................\......................\......\UI\CustomLegendFrm.cs
...................\......................\......\..\CustomLegendFrm.Designer.cs
...................\......................\......\..\CustomLegendFrm.resx
...................\......................\......\..\LegendSelectUI.cs
...................\......................\......\..\LegendSelectUI.Designer.cs
...................\......................\......\..\LegendSelectUI.resx
...................\......................\......\..\LegendStyleUI.cs
...................\......................\......\..\LegendStyleUI.Designer.cs
...................\......................\......\..\LegendStyleUI.resx
...................\......................\obj\Debug\ComDll.Legend.UI.CustomLegendFrm.resources
...................\......................\...\.....\ComDll.Legend.UI.LegendSelectUI.resources
...................\......................\...\.....\ComDll.Legend.UI.LegendStyleUI.resources
...................\......................\...\.....\CustomLegendClassByGxp.csproj.FileListAbsolute.txt
...................\......................\...\.....\CustomLegendClassByGxp.csproj.GenerateResource.Cache
...................\......................\...\.....\CustomLegendClassByGxp.dll
...................\......................\...\.....\CustomLegendClassByGxp.pdb
...................\......................\...\.....\Refactor\CustomLegendClassByGxp.dll
...................\......................\...\.....\ResolveAssemblyReference.cache
...................\......................\Properties\AssemblyInfo.cs
...................\TestCustomLegendDll\bin\Debug\ComBasic.dll
...................\...................\...\.....\ComMap.dll
...................\...................\...\.....\CustomLegendClassByGxp.dll
...................\...................\...\.....\CustomLegendClassByGxp.pdb
...................\...................\...\.....\data\test.mdb
...................\...................\...\.....\....\测试图例.mxd
...................\...................\...\.....\DevComponents.DotNetBar2.dll
...................\...................\...\.....\MarkerLib.dll
...................\...................\...\.....\Microsoft.Office.Interop.Excel.dll
...................\...................\...\.....\Microsoft.Vbe.Interop.dll
...................\...................\...\.....\NLog.config
...................\...................\...\.....\NLog.dll
...................\...................\...\.....\office.dll
...................\...................\...\.....\TestCustomLegendDll.exe
...................\...................\...\.....\TestCustomLegendDll.pdb
......