[Excel 開発]グラフの要素名と値を取得する方法

clock October 10, 2008 14:54 by author
取得した名前から、DB や Web サービスから情報を追加で取得して、分析をおこなうようなシナリオも考えられます。 ※一番右の要素をクリックした際のメッセージボックス ※一番左の要素をクリックした際のメッセージボックス Excel VSTO でグラフと連動した動的なアプリケーションを作成する際に有効です。 以下手順です。 手順: 1. 任意のグラフ付きのブックを用意します。 2. VSTO で読み込み、以下のコードを記述します。 Sub elementChart_MouseD... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C#] Nullable 型のボックス化

clock October 9, 2008 12:26 by author
窓際プログラマーの独り言 -C#の話題を中心に:Nullable型のType より int? a = 10; Type type = a.GetType(); Console.WriteLine(type.Name); を実行すると、 Int32 って表示されるんだ。 a = null; type = a.GetType(); だと、 「オブジェクト参照がオブジェクト インスタンスに設定されていません。」 と、例外が発生する。 へー、そんな動きするんですね。 ちょっと調べてみましたところ、CLR の動作による... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] .NET Framework JIT 最適化にも負けずに呼び出し元のメソッドを取得する方法

clock October 9, 2008 12:04 by author
StackFrame クラス (System.Diagnostics) を使用すると、呼び出し元メソッドを取得することができる。しかし、Release ビルドされたアセンブリでは JIT 最適化により呼び出し元メソッドがインライン化されている可能性がある。 例えば、次のコードの実行結果を Debug ビルドと Release ビルド (非デバッグ実行) とで比較すると一目瞭然だ。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【 .NET ] Windows Communication Foundation 】SOAP メッセージの検証・変更を行うための PowerShell 関数

clock October 8, 2008 16:08 by author citiszo
SOAP メッセージの検証・変更を行うための PowerShell 関数を作成しました。 【 Set-MessageInspector 関数 】 WCF クライアントが要求メッセージを送信する前、応答メッセージを受信した後の 2 箇所に独自の処理を追加します。 追加した処理からは、要求メッセージまたは応答メッセージの検査・変更を行うことができます。 これにより、例えば、SOAP メッセージをログに記録することができます。 [ パラメータ ] ・target SvcUtil.exe が生成したクライアントクラス ( ClientBase ジェネリッククラスの派生クラス ) ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] ASP.NET セッションステートの利用方法を模索中

clock October 5, 2008 12:14 by author
最近、セッションステートの上手い利用方法を模索してます。 CodeZine に「ASP.NETのセッションをタイプセーフに取り扱うクラスの作成」という記事が載ってましたが、この方法は僕的にちょっと馴染めなかったもので。 以下、現時点での考えをメモしときます。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


C# ?? Null合体演算子(そして、それをLINQと共に使用)

clock October 1, 2008 18:18 by author
C#のささやかな(でもかっこいい)言語機能の1つが??です。"Null合体"演算子です。これにより、値がNullかどうかをチェック、また、もしそうであれば代替値を返すという、きれいで簡潔な方法が提供されます。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[.NET] WindowsIdentity.GetCurrent と Thread.CurrentPrincipal

clock September 17, 2008 19:19 by author
今まで同じものだと思ってた。 ( WindowsIdentity と IPrincipal の違いは置いといて。) それぞれ違うユーザー情報を返してきた時は驚いた。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[ .NET ] .NET Framework コンストラクタを呼び出さずにインスタンス化

clock September 16, 2008 13:21 by author citiszo
通常、インスタンスを生成する際には必ずコンストラクタが呼び出されます。 でも実は、コンストラクタを実行せずにインスタンスを生成することができます。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【 .NET 】【 C# 】コーディング俺規約 - usingブロックとreturn

clock September 11, 2008 13:39 by author
何かと言うと、usingブロック内で得た値を戻り値で返す場合です。 例えば、 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


【Tips】スレッド内で発生した例外 - System.Timers.Timer

clock September 10, 2008 12:47 by author citiszo
では、System.Timers.Timerを使った非同期処理の場合はどうなるんだろうか? この Timerもスレッドが生成されるので、同じ動きだろうか? [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[How to]Dispose(bool disposing) の override

clock September 10, 2008 12:24 by author
http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx のコードをみて、以下のように書いたら、base.Dispose() が呼ばれない可能性があるということで、FxCopの警告が出た。 protected override void Dispose(bool disposing) { if(!this.disposed) { try { if(disposing) { addedManaged.Dispose(); } this.disposed = true; } finally {... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


IEnumeratorは、IDisposableを実装してる

clock September 10, 2008 12:20 by author
IEnumeratorは、IDisposableを実装してる [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C Sharp]C#の文字列リテラルを正規表現で

clock September 10, 2008 12:19 by author
C#の文字列リテラルを正規表現で [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[How to]Nullable型のType-Nullableかどうかを判断する

clock September 10, 2008 11:43 by author
int? a = 10; Type type = a.GetType(); Console.WriteLine(type.Name); を実行すると、 Int32 って表示されるんだ。 Nullable`1 って表示されるのかと思った。 当然なのだが、 a = null; type = a.GetType(); だと、 「オブジェクト参照がオブジェクト インスタンスに設定されていません。」 と、例外が発生する。 そういう意味では、Int32と表示されるのは。理にかなっているのかな? ローカル変数 int? x が宣言... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[How to]ArrayList, Hashtableよりはジェネリック・クラスを

clock September 10, 2008 10:21 by author
このブログのアクセス解析でどのキーワードで検索されたかを見てみると意外とArrayListやHashtableで検索されていたりする。 Visual Studio 2005以降を使っているのならば、是非。List, Dictionaryを使ってほしいものだ。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Calendar

<<  November 2008  >>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

Archive

Tags

Categories


Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in