Discussion:
プライマリ列挙値をマークする方法は?
(too old to reply)
Yukio Kishiue
2006-05-18 11:00:18 UTC
Permalink
$B!!(BC#2003$B$r;H$C$F$$$^$9$,!$Ns5s7?$NDj5A$GH=$i$J$/$J$C$F$7$^$$(B
$B$^$7$?!#(B

$B!!0lNc$G$9$,!$<!$N$h$&$JNs5s7?$rDj5A$7!$(B...

enum MyPenStyle { Solid, Min = Solid, Dash, Dot, DashDot,
DashDotDot, Clear, Transparent = Clear, Max = Clear }

...

for ( MyPenStyle p = MyPenStyle.Min; p <= MyPenStyle.Max; ++p )
Console.Write(p.ToString() + "\n");

...$B$H=q$-=P$7$F$_$k$H!$(B...

Min
Dash
Dot
DashDot
DashDotDot
Clear

...$B$H$$$&$h$&$J7k2L$K$J$j$^$9!#:G=i$N9T$O!V(BSolid$B!W$K$J$C$F(B
$BM_$7$$$N$G$9$,!$$J$<$+!V(BMin$B!W$K$J$C$F$7$^$$$^$9!#(B

$B!!$$$m$$$mD4$Y$?$H$3$m!$0J2<$N$h$&$J%Z!<%8$r8+$D$1$^$7$?!#(B
http://msdn2.microsoft.com/ja-JP/library/6e3t9w21.aspx

$B!!!VJ#?t$N%U%#!<%k%I$KF1$8CM$r3d$jEv$F$k$3$H$b$G$-$^$9!#$=(B
$B$N>l9g$O!"%j%U%l%/%7%g%s$dJ8;zNsJQ49$r9T$&$?$a$K!"$$$:$l$+(B
$B$NCM$r%W%i%$%^%jNs5sCM$H$7$F%^!<%/$7$F$*$/I,MW$,$"$j$^$9!#!W(B
$B$H$"$k$N$G$9$,!$4N?4$N!V%W%i%$%^%jNs5sCM$H$7$F%^!<%/$7$F$*(B
$B$/!WJ}K!$,$^$C$?$/$o$+$j$^$;$s!#(B

$B!!$3$NJ}K!$r$4B8CN$NJ}$O$$$i$C$7$c$$$^$;$s$G$7$g$&$+!)$=$l(B
$B$H$b!$$3$s$J$3$H$O$G$-$J$$$N$G$7$g$&$+!)(B
--
$B4_>e9,@8(B ( ***@mail.gosei.co.jp )
kes
2006-05-22 03:32:41 UTC
Permalink
kes $B$G$9!#(B

$B2?$H$J$/$G$9$,!"Ns5sDj?t$rDj5A$5$l$F$$$k=g$K3JG<$7$?G[Ns$KBP$7$F!"(B
$B%=!<%H$;$:$K!"CM$GFsJ,C5:w$7$F7hDj$7$F$$$k$h$&$K8+$($^$9$M!#(B
$BNc$($P(B Min $B$H(B Dash $B$N=gHV$rF~$lBX$($k$@$1$G!"(B
Solid $B$,I=<($5$l$k$h$&$K$J$j$^$9!#(B

$B$^$?!"4{Dj$NL>A0$r7h$a$k$=$l$i$7$-B0@-$O$J$5$=$&$G$9$M!#(B
$B$3$N5!G=$K0MB8$9$k$h$&$J%3!<%I$O=q$+$J$$J}$,$h$5$=$&$G$9!#(B

.NET Framework 2.0 $B$G$OD4$Y$F$*$j$^$;$s$,!"=$@5$5$l$F$$$k$N$G$7$g$&$+!#(B

# CLI $B$N%=!<%9%3!<%IFI$s$G$_$h$&$+$J!D(B

--
kes
Post by Yukio Kishiue
$B!!(BC#2003$B$r;H$C$F$$$^$9$,!$Ns5s7?$NDj5A$GH=$i$J$/$J$C$F$7$^$$(B
$B$^$7$?!#(B
$B!!0lNc$G$9$,!$<!$N$h$&$JNs5s7?$rDj5A$7!$(B...
enum MyPenStyle { Solid, Min = Solid, Dash, Dot, DashDot,
DashDotDot, Clear, Transparent = Clear, Max = Clear }
...
for ( MyPenStyle p = MyPenStyle.Min; p <= MyPenStyle.Max; ++p )
Console.Write(p.ToString() + "\n");
...$B$H=q$-=P$7$F$_$k$H!$(B...
Min
Dash
Dot
DashDot
DashDotDot
Clear
...$B$H$$$&$h$&$J7k2L$K$J$j$^$9!#:G=i$N9T$O!V(BSolid$B!W$K$J$C$F(B
$BM_$7$$$N$G$9$,!$$J$<$+!V(BMin$B!W$K$J$C$F$7$^$$$^$9!#(B
$B!!$$$m$$$mD4$Y$?$H$3$m!$0J2<$N$h$&$J%Z!<%8$r8+$D$1$^$7$?!#(B
http://msdn2.microsoft.com/ja-J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