Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The realization method of Composer showing and hiding according to Name

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "Composer shows and hides according to Name". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Composer shows and hides according to Name

/ / main settings private void TransmissionByData_AxSendSelectionChange (string domName, bool isVisible) {System.Threading.Tasks.Parallel.Invoke (()) = > {try {if (isVisible) {axDS3DVIAPlayerActiveX1.SetVisibility (CLitSelectionName (domName)) CrActorVisibility.crAtvVisible, CrActorVisibility.crAtvKeepActorVisibility) } else {axDS3DVIAPlayerActiveX1.SetVisibility (CLitSelectionName (domName), CrActorVisibility.crAtvInvisible, CrActorVisibility.crAtvKeepActorVisibility);}} catch (InvalidComObjectException e) {Console.WriteLine (e) }});} private string CLitSelectionName (string name) {return string.Format ("", name) } private void HightLightItem (string strId, AxDS3DVIAPlayerActiveX objPlayer) {try {objPlayer.SetPropertySet (objPlayer.GetAllActorsOnFilter (", false), string.Format (", strHightLightAlpha) ObjPlayer.SetPropertySet (string.Format (", strId),");} catch (InvalidComObjectException e) {Console.WriteLine (e) }} private void HightLightAll (AxDS3DVIAPlayerActiveX objPlayer) {try {objPlayer.SetPropertySet (objPlayer.GetAllActorsOnFilter (string.Format (", strHightLightAlpha), true),") } catch (InvalidComObjectException e) {Console.WriteLine (e);}} private void SetPlayerSelections (string [] strItemKeys, AxDS3DVIAPlayerActiveX objPlayer) {try {string strSelection = "" If (strItemKeys.Length = = 0) {strSelection = ";} else {strSelection = strItemKeys.Aggregate (", (current, t) = > current + string.Format (", t)); strSelection + =" } objPlayer.Selection = strSelection;} catch (InvalidComObjectException e) {Console.WriteLine (e) }} / / focus Player's selections on private void SetPlayerSelectionsFocus (AxDS3DVIAPlayerActiveX objPlayer) {try {objPlayer.ZoomSelection ();} catch (InvalidComObjectException e) {Console.WriteLine (e) }} the content of "Composer shows and hides according to Name" is introduced here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report