é«å質ã®ããã¥ã¡ã³ãã¯ãæåãããœãããŠã§ã¢è£œåã®äžå¯æ¬ ãªéšåã§ãã ããã°ã©ã ãšãœãããŠã§ã¢ã³ã³ããŒãã³ãã®ãã¹ãŠã®æ©èœãšæ©èœã®å®å
šã§ç解å¯èœãªèª¬æãäœæããã«ã¯ãå€ãã®åŽåãšå¿èãå¿
èŠã§ãã ãã®èšäºã§ã¯ã.NETã³ã³ããŒãã³ãã®ããã¥ã¡ã³ãäœæã®å®çšçãªåŽé¢ã«ã€ããŠèª¬æããŸãã
éçºè
åãã®.NETã©ã€ãã©ãªãçšæãããŠããããã»ãŒæºåãã§ããŠãããšä»®å®ããŸãïŒãšã³ããŠãŒã¶ãŒã§ããããŸãïŒã ã©ã€ãã©ãªAPIã¯ç³ãåãªãããã°ã®æ°ã¯é©ãã»ã©å°ãªããå®éã«ã¯ã©ã€ãã©ãªã§ã¯ãªããåãªãå®ç§ãªã³ãŒãã®ä¿ç®¡åº«ã§ãã ãã€ã³ãã¯å°ãã-ãŠãŒã¶ãŒã«ãã®ãã°ããã補åã䜿çšããæ¹æ³ã説æããããšã§ãã
ããã¥ã¡ã³ããæžãããã®ããŸããŸãªã¢ãããŒãããããŸãã äžéšã®ããŒã ã¯ã補åäœæã®éå§æã«ããã¥ã¡ã³ãã®äœæãéå§ããããšã奜ã¿ãŸãã ä»ã®äººã¯ãäœæ¥ãå®äºããããã«ããã¥ã¢ã«ã®äœæã延æããŠããŸãã äžéšã®ããŒã ã§ã¯ãéçºè
ããéçºè
ãžããããŠãããŒãžã£ãŒãããããŒãžã£ãŒãžãšè¡ãç¹å¥ãªäººã
ãããã¥ã¡ã³ããäœæãã補åã«é¢ããç¥èãèç©ããŠããŸãã å€ãã®å°ããªããŒã ã«ã¯ãã®ãããªç¹å¥ãªäººãããªããããå€ãã®å Žåãããã¥ã¡ã³ãã¯éçºè
ã«ãã£ãŠäœæãããŸãã 誰ããHelpïŒManualãªã©ã®ãµãŒãããŒãã£ããŒã«ã䜿çšããŸãããã®ããŒã«ã§ã¯ãå®éã®ããã¹ããšãã£ã¿ãŒã®ããã«ãéåžžã«è€éãªã¬ã€ã¢ãŠããäœæããåºåã§ããŸããŸãªåœ¢åŒã®ããã¥ã¡ã³ããååŸã§ããŸãã å€ãã®äººã
ã¯ãæè¿åºãæšé²ãããŠããç°ãªãã¢ãããŒãã䜿çšããŸããããã°ã©ã /ã©ã€ãã©ãªã³ãŒãã§çŽæ¥ããã¥ã¡ã³ããèšè¿°ããŸãã
ç§ã®ä»äºã§ã¯ããµãŒãããŒãã£ã®ããŒã«ãšçµã¿èŸŒã¿ã®ããŒã«ã®äž¡æ¹ã䜿çšããŸããã 圌ã¯ããã«ãããŠæåŸã®ç¬éã«ããã¥ã¡ã³ããæžãå§ããŸããã ãã®çµæãå®æã«è¿ã¥ããAPIãæ©èœã»ãããªã©ãå®æããã»ã©ã補åã®äœæã®åŸåã«ããã¥ã¡ã³ããæžãå§ããæ¹ãè¯ããšèªåã§æ±ºããŸãããã€ãŸããããã¥ã¡ã³ãã®èª¿æŽé »åºŠã¯å°ãªããªããŸãã ã³ãŒãã§çŽæ¥ããã¥ã¡ã³ããæžãããšã¯ãæçµçã«ã¯ãµãŒãããŒãã£ã®ããã°ã©ã ããã䟿å©ã§ããããšãå€æããŸããããæåã¯ãŸã£ããéã®ããã«èŠããŸããã ãã®èšäºã§ã¯ãã³ãŒãã§çŽæ¥ããã¥ã¡ã³ããæžãæ¹æ³ã«ã€ããŠèª¬æããŸãã
APIã«ã€ããŠèª¬æããŸã
ã³ã³ãã€ã©CïŒããã³VB.NETã¯ãç¹å¥ãªæ¹æ³ã§ãã©ãŒããããããã³ã¡ã³ãïŒxmlã³ã¡ã³ãïŒãèªèããå¿
èŠã«å¿ããŠãããã¥ã¡ã³ãã®äœæã«äœ¿çšã§ããxmlãã¡ã€ã«ãäœæã§ããŸãã ãã®æ©äŒãå©çšããã«ã¯ãxmlã³ã¡ã³ãã䜿çšããŠãã¹ãŠã®ãããªãã¯ã¯ã©ã¹ãšã¡ãœãããèšè¿°ããå¿
èŠããããŸãã 次ã®ããã«ãªããŸãã
/// <summary>
///ã«ãã£ãŠè¿ãããABGRå€ããRã³ã³ããŒãã³ããååŸããŸã
/// <cref = "OïŒBitMiracle.LibTiff.Classic.Tiff.ReadRGBAImage"> ReadRGBAImage </ see>ãåç
§ããŠãã ããã
/// </ summary>
/// <param name = "abgr"> ABGRå€</ param>
/// <returns> ABGRå€ããã®Rã³ã³ããŒãã³ã</ returns>
public static int GetR ïŒ int abgr ïŒ
{
return ïŒ abgr ïŒ 0xff ïŒ ;
}
ããã©ã«ãã§ã¯ãã³ã¡ã³ãããã®xmlãã¡ã€ã«ã®äœæã¯ç¡å¹ã«ãªã£ãŠããŸãã [ãã«ã]ã¿ãã®ãããžã§ã¯ãããããã£ã§æå¹ã«ããå¿
èŠããããŸãã
ãã®çµæãã³ã³ãã€ã«äžã«ãã¢ã»ã³ããªã®ãã¡ã€ã«ã«å ããŠãã³ãŒãããã®ãã¹ãŠã®xml-commentsïŒéãããªãã¯æ§é ã«é¢ããã³ã¡ã³ããå«ãïŒãå«ãxml-fileãçæãããŸãã ãã®ãã¡ã€ã«èªäœã¯ãã¢ã»ã³ããªïŒdllïŒã®é£ã«é
眮ãããšããŠãŒã¶ãŒãã³ãŒããå
¥åãããšãã«Visual Studioã®IntelliSenseé¢æ°ã§ã¡ãœããã®èª¬æã衚瀺ã§ãããšããç¹ã§äŸ¿å©ã§ãã 次ã«ãäžèšã®GetRé¢æ°ãæ€çŽ¢ããæ¹æ³ã®äŸã瀺ããŸãã
ãã ããã»ãšãã©ã®å Žåãçæãããxmlãã¡ã€ã«ã«ã¯ããŠãŒã¶ãŒãå¿
èŠãšããªãããŸãã¯è¡šç€ºã§ããªãå
éšæ§é ã«é¢ããã³ã¡ã³ããå«ãŸããŠããŸãã 以äžã«ããããªãã¯ã¡ãœããã®èª¬æã®ã¿ãå«ãŸããããã«xmlãã¡ã€ã«ãèªåçã«ã¯ãªã¢ããæ¹æ³ãèšè¿°ããŸãã
ãã¹ãŠã®xmlã¿ã°ã詳现ã«æ€èšããã®ã§ã¯ãªããæãäžè¬çã«äœ¿çšãããã¿ã°ã«ã€ããŠç°¡åã«èª¬æããŠã¿ãŸãã
ãµããªãŒã¿ã°ã¯ãã¯ã©ã¹ãã€ã³ã¿ãŒãã§ã€ã¹ãåæãã¯ã©ã¹ãŸãã¯ã€ã³ã¿ãŒãã§ã€ã¹ã®ã¡ãœãããšããããã£ãããã³åæã¡ã³ããŒã®ç®çãç°¡åã«èª¬æããããã«äœ¿çšãããŸãã
paramã¿ã°ã䜿çšãããšãé¢æ°ã§åãå
¥ãããããã©ã¡ãŒã¿ãŒãèšè¿°ã§ããŸãã ãã®ã¿ã°ã¯ãåãå
¥ããããåãã©ã¡ãŒã¿ãŒã«äœ¿çšããå¿
èŠããããŸãã é¢æ°ã®æ»ãå€ãèšè¿°ããããã«ã
returnsã¿ã°ã䜿çšãããŸãã
å€ã¿ã°ã¯ãããã€ãã®ããããã£ãååŸãŸãã¯è¿ãå€ãèšè¿°ããã®ã«åœ¹ç«ã¡ãŸãã ããæå³ã§ã¯ãå€ã¿ã°ã¯è¿åã¿ã°ã«é¡äŒŒããŠããŸãã
/// <summary>
///ãã©ã³ãã®äžæãååŸããŸãã
/// </ summary>
/// <value>ãã©ã³ãã®äžæ</ value>
/// <泚é>äžæã¯ãå°éããããŒã¹ã©ã€ã³ããã®æ倧ã®é«ãã§ã
///ãã®ãã©ã³ãã®ã°ãªãã«ãããã°ãªãã®é«ããé€ã
///ã¢ã¯ã»ã³ãèšå·ä»ãæå</ remarks>
ãããªã㯠ã·ã§ãŒãã¢ã»ã³ã
{
åŸã
{
Implãè¿ããŸãã äžæ
}
}
éåžžã«äŸ¿å©ãªïŒãããŠãæ®å¿µãªããããã°ãã°ç¡èŠãããïŒ
remarksã¿ã°ã¯ãèšè¿°ããããšã³ãã£ãã£ã®ã¡ã¢ãæå®ã§ããããã«ããŸãã ãã®ã¿ã°ã¯ãåæã®ã¡ã³ããŒã®èª¬æãé€ããã»ãŒã©ãã§ã䜿çšã§ããŸãã å®éãåæã¡ã³ããŒã䜿çšã§ããŸãããvs2005ã®ã¹ã¿ã€ã«ã§çºè¡ãããããã¥ã¡ã³ãã§ã¯ããããã®ã¡ã¢ã¯åã«è¡šç€ºãããããã®ãããªã¡ã¢ã®æçšæ§ãäœäžããŸãã
ããã«å®çšçãªã¡ã¢/æšå¥šäºé
ãããã€ã瀺ããŸãã
GhostDocãšããVisual Studioã®æ¡åŒµæ©èœãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ããŸãã ãã®æ¡åŒµæ©èœã¯ããã¹ãŠã®ã¹ã¿ãžãªããŒãžã§ã³ïŒããŒãžã§ã³2005以éïŒã§æ©èœããxmlã³ã¡ã³ãã®äœæã倧å¹
ã«ç°¡çŽ åããŸãã Ctrl-Shift-DãæŒããšããã®æ¡åŒµæ©èœã¯ã«ãŒãœã«ãçŸåšçœ®ãããŠãããšã³ãã£ãã£ã®èª¬æãæ¿å
¥ããŸãã å¿
èŠãªãã¹ãŠã®ã¿ã°ãæ¿å
¥ãããããšãã°ãã¡ãœããã®ååãšãã®ãã©ã¡ãŒã¿ãŒã®ååã«åºã¥ããŠèª¬æããã¹ããçæãããŸãã å€ãã®å Žåãçæãããããã¹ãã調æŽããã³è£è¶³ããããã ãã«æ®ããŸãã
ã³ãŒãã«çŽæ¥ããã¥ã¡ã³ããæžãããšã®æ¬ ç¹ã¯ãã³ãŒããããã³ã¡ã³ããå€ãå Žåããããã³ãŒãã®èªã¿åããéåžžã«å°é£ã«ãªãå Žåãããããšã§ãã ãã®åé¡ãåé¿ããã«ã¯ããããªãã¯ã€ã³ã¿ãŒãã§ã€ã¹ãšå®è£
ãå®å
šã«åé¢ããããšãéåžžã«äŸ¿å©ã§ãã
ãªãŒããŒããŒããããã¡ãœãããè€æ°ããå Žåããããã®ããã¥ã¡ã³ããçæãããšãã«å¥ã®ããŒãžãäœæãããŸãïŒãã®ãããªããŒãžã®
äŸã次ã«ç€ºããŸãïŒã ãã®ããŒãžã®ããã¹ãã¯ããªãŒããŒããŒãã¡ãœããã®ããããã®èª¬æã®ãªãŒããŒããŒãã¿ã°ã§æå®ããå¿
èŠããããŸãã
/// <summary>
///ãã©ã³ããã€ããæå®ãããã¹ããªãŒã ã«ä¿åããŸãã
/// </ summary>
/// <param name = "stream">ãã©ã³ããã€ããä¿åããã¹ããªãŒã </ param>
/// <overloads>ãã©ã³ããã€ãããã¡ã€ã«ãŸãã¯ã¹ããªãŒã ã«ä¿åããŸãã
public void Save ïŒ Stream stream ïŒ
{
Implã ä¿å ïŒã¹ããªãŒã ïŒ ;
}
å¥ã®ã¡ãœãããžã®åç
§ãäžããããããã¡ãœããã®èª¬æãå
¥åãããå Žåã¯ã
<see cref="X:MEMBER"> </see>
ãããªæ§é ã䜿çšããå¿
èŠããããŸããXã¯ãšã³ãã£ãã£ã®ã¿ã€ãã瀺ããªãã·ã§ã³ã®ãã¬ãã£ãã¯ã¹ã§ãïŒã¯ã©ã¹ã®T ãMã¯ã¡ãœãããPã¯ããããã£ãOã¯ãªãŒããŒããŒããããã¡ãœããã®ã°ã«ãŒãïŒãããã³MEMBERã¯ãšã³ãã£ãã£ã®å®å
šãŸãã¯éšåçãªæå®ã§ãã ããšãã°ãåãã¯ã©ã¹ã®2ã€ã®ã¡ãœããéãŸãã¯åãåå空éã®2ã€ã®ãšã³ãã£ãã£éã®ãªã³ã¯ã«ãéšåçãªæå®ãšæ¬ èœããŠãããã¬ãã£ãã¯ã¹ã䜿çšã§ããŸãã
éšåçãªä»æ§ã®äœ¿çšäŸïŒPdfFontEmbedStyleã¯PdfFontãšåãåå空éã«ãããŸãïŒïŒ
å
¬é ã·ãŒã« ã¯ã©ã¹ PdfFont
{
...
/// <summary>
///ãæå®ãã<see cref = "PdfFontEmbedStyle" />å€ãååŸãŸãã¯èšå®ããŸã
///ãã®ãã©ã³ããã©ã®ããã«ããã¥ã¡ã³ãã«åã蟌ãŸãããã
/// </ summary>
/// <value> <see cref = "PdfFontEmbedStyle" />ãæå®ããå€
///ãã®ãã©ã³ããããã¥ã¡ã³ãã«ã©ã®ããã«åã蟌ãŸããã</ value>
public PdfFontEmbedStyle EmbedStyle
{
åŸã
{
Implãè¿ããŸãã EmbedStyle
}
ã»ãã
{
Implã EmbedStyle = value ;
}
}
}
å¥ã®ããŒã ã¹ããŒã¹ã®ãšã³ãã£ãã£ããªãŒããŒããŒããããã¡ãœããã®ã°ã«ãŒãããŸãã¯ãªãŒããŒããŒããããã¡ãœããã®ã°ã«ãŒãã®ç¹å®ã®ã¡ãœãããåç
§ããå Žåã¯ãå®å
šãªä»æ§ã䜿çšããå¿
èŠããããŸãã å®å
šãªä»æ§ã®äŸïŒ
- ããããã£åç
§
<see cref="P:System.Exception.HResult"/>
- ã¡ãœãããªãã¡ã¬ã³ã¹
<see cref="M:BitMiracle.LibTiff.Classic.Tiff.GetR(System.Int32)"/>
- ãªãŒããŒããŒããããã¡ãœããã®ã°ã«ãŒããžã®ãªã³ã¯
<see cref="O:BitMiracle.LibTiff.Classic.Tiff.PrintDirectory"/>
- ã¯ã©ã¹åç
§
<see cref="T:BitMiracle.LibTiff.Classic.TiffTagMethods"/>
ã芧ã®ãšãããå®å
šãªä»æ§ã«ã¯ã¡ãœããã®ãã©ã¡ãŒã¿ãŒã瀺ãããŠããããããªã³ã¯ãäžæã«èå¥ã§ããŸããããªã³ã¯ã®èšè¿°ãè€éã«ãªããŸãã 以åã«ã³ã³ãã€ã«ãããxmlãã¡ã€ã«ããå®å
šãªä»æ§ãã³ããŒããããšã«ãããæäœæ¥ãç¯çŽã§ããŸãã
ãªãŒããŒããŒããããã¡ãœããã®ã°ã«ãŒããžã®ãªã³ã¯ã§ã¯ã1ã€ã®è¿·æãé¢é£ä»ããããŸãã Visual Studioã§ã¯ããã®ãããªãªã³ã¯ã
O:XXX.YYY
ããå¿
èŠããããŸãããSandcastle Help File Builderã§ã¯ããã®ãããªãªã³ã¯ã
Overload:XXX.YYY
ããå¿
èŠããããŸãã ãã®åé¡ã解決ããã«ã¯ããã«ãåŸã®ã€ãã³ãã§åŒã³åºãããxmlãã¡ã€ã«ã®
O:
ã
Overload:
ã«çœ®ãæããç°¡åãªã¹ã¯ãªããã䜿çšããŸãã
ããã¥ã¡ã³ãã®å€éšèšäºïŒAPIã®èª¬æãšã¯ç¡é¢ä¿ïŒãŸãã¯ã€ã³ã¿ãŒãããäžã®ãªãœãŒã¹ã«ãªã³ã¯ããã«ã¯ãå€ããªã£ã
<a>
ã¿ã°ãšhrefå±æ§ã䜿çšããŸãã ããšãã°ã
<a href = "54cbd23d-dc55-44b9-921f-3a06efc2f6ce.htm"> </a>
ãŸãã¯
<a href = "http://site.com/page.html"> </a>
ã æåã®äŸã§ã¯ãå€éšèšäºãå«ãããã¥ã¡ã³ãã®ååã¯ãTOPIC_ID.htmããšãã圢åŒã§è¡šç€ºãããŸãã ãããã¯IDã«ã€ããŠã¯åŸã§èª¬æããŸãã
次ã®èšäºã®xmlã³ã¡ã³ãã䜿çšããŠãã³ãŒãã®ããã¥ã¡ã³ãåã«ã€ããŠè©³ããèªãããšãã§ããŸãã
ããã¥ã¡ã³ããã¡ã€ã«ãçæãã
ã³ã³ããŒãã³ãã®xmlèšè¿°ãæºåã§ããããããã¥ã¡ã³ããã¡ã€ã«ãçæã§ããŸãã ããã«ã¯ãSandcastle + Sandcastle Help File BuilderïŒSHFBïŒãã³ãã«ã䜿çšããããšã奜ã¿ãŸãã DocProjectã奜ã人ãããããšã«æ³šæããŠãã ããã ããã«ã¯ä»¥äžãå¿
èŠã§ãã
- SandcastleãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ãã
sandcastle.codeplex.com - Sandcastle Help File BuilderãããŠã³ããŒãããŠã€ã³ã¹ããŒã«ãã
shfb.codeplex.com - Sandcastleã§äœ¿çšãããã¹ã¿ã€ã«ã®ããããããŠã³ããŒãããŠé©çšãã
sandcastlestyles.codeplex.com - HTMLãã«ã圢åŒã®ããã¥ã¡ã³ãã®ã¢ã»ã³ããªã«åé¡ãããå Žåã¯ãitircl.dllãã·ã¹ãã ã«ååšããç»é²ãããŠããããšã確èªããå¿
èŠããããŸãã éåžžããã®dllã¯System32ã«ãããregsvr32ãä»ããŠç»é²ããå¿
èŠããããŸãã 詳现ã¯ããã«æžãããŠããŸãïŒ
frogleg.mvps.org/helptechnologies/htmlhelp/hhtips.html#hhc6003
chm圢åŒã®ããã¥ã¡ã³ãã®çµã¿ç«ãŠãéå§ããŸãã ãããè¡ãã«ã¯ãSandcastle Help File Builderãå®è¡ãããããžã§ã¯ãããããã£ãæ§æããŸãã ãComponentConfigurationsãããããã£ã§ã¯ãã¢ã»ã³ããªäžã«äœ¿çšãããè¿œå ã®ã³ã³ããŒãã³ããæ§æã§ããŸãã å¿
èŠãªã³ã³ããŒãã³ããããããªãå Žåã¯ããã¹ãŠã®ã³ã³ããŒãã³ããéžæã§ããŸãã ãããã®å ŽåããIntelliSenseã³ã³ããŒãã³ããåžžã«äœ¿çšããããšããå§ãããŸããIntelliSenseã³ã³ããŒãã³ãã¯ãå
¥åxmlãã¡ã€ã«ã®ã³ããŒãèªåçã«äœæãããã¹ãŠã®éãããªãã¯ã³ã¡ã³ããæ¶å»ããããã§ãã ãŠãŒã¶ãŒã«æäŸããå¿
èŠãããã®ã¯ãã®ã³ã³ããŒãã³ãã®çµæã§ãããã³ã³ãã€ã©ãŒãäœæããxmlãã¡ã€ã«ã§ã¯ãããŸããã
次ã®ããããã£ãããã«å€æŽããããšããå§ãããŸãã
- ãã«ãã»ã¯ã·ã§ã³ïŒFrameworkVersion
- ãã«ããã¡ã€ã«ã»ã¯ã·ã§ã³ïŒCopyrightHrefãCopyrightTextãFeedbackEMailAddressãFeedbackEMailLinkTextãHelpTitleãHtmlHelpName
- ã»ã¯ã·ã§ã³ãã¹ïŒOutputPath
次ã«ããããžã§ã¯ããšã¯ã¹ãããŒã©ãŒãŠã£ã³ããŠã§ãããã¥ã¡ã³ããœãŒã¹ãè¿œå ããŸãã ããã§ã¯ãCïŒ/ VB.NETãããžã§ã¯ããã¡ã€ã«ã§ã¯ãªããç¹å®ã®ã¢ã»ã³ããªããã³ã³ã¡ã³ãä»ãã®xmlãã¡ã€ã«ãéžæããããšããå§ãããŸãã ãããžã§ã¯ããã¡ã€ã«ãéžæãããšãxmlã³ã¡ã³ãã®å€æŽãããã¥ã¡ã³ãã«åæ ãããªããšããåé¡ãçºçããå ŽåããããŸãã 誰ãããã責ããã®ããç§ã«ã¯ããããŸããã
ãã1ã€ã®éèŠãªæé ã¯ãSHFBã§åå空éãèšè¿°ããããšã§ãã ã³ãŒãå
ã®XMLã³ã¡ã³ãã¯åå空éã«å¯ŸããŠæ©èœããªãããããããæåã§è¡ãå¿
èŠããããŸãã ã³ã¡ã³ãã»ã¯ã·ã§ã³ãšãã®äžã®NamespaceSummariesããããã£ã¯ããã§åœ¹ç«ã¡ãŸãã åå空éã®èª¬æã§ã¯ãæšæºã®htmlã¿ã°ã䜿çšã§ããŸãã
ãããžã§ã¯ãã®ã»ããã¢ãããå®äºããŸãããä»åºŠã¯.hmãã¡ã€ã«ããã«ãããŸãã [ããã¥ã¡ã³ã]-> [ãããžã§ã¯ãã®ãã«ã]ãéžæããŸãããã¹ãŠãæ£ããè¡ãããå ŽåãMSDNã®ã¹ã¿ã€ã«ã§çŸããããã¥ã¡ã³ããã¡ã€ã«ãååŸãããŸãã
ãããã¯ã«é¢ãã圹ç«ã€ãªã³ã¯ïŒ
èšäºãæžã
ãã ããããã§åæ¢ããªãã§ãã ãããã³ã³ããŒãã³ãã®åäžã®APIèšè¿°ã§ã¯ãå®å
šãªããã¥ã¡ã³ããäœæããã«ã¯äžååã§ãã éåžžãåªããããã¥ã¡ã³ãã«ã¯ãè¿œå ã®èšäºãäŸãFAQãªã©ãå«ãŸããŠããŸãã
[ãããžã§ã¯ããšã¯ã¹ãããŒã©]ãŠã£ã³ããŠã§ãæ°ããã³ã³ãã³ãã¬ã€ã¢ãŠãèŠçŽ ãè¿œå ããŸããããã¯ãããã¥ã¡ã³ãã«å«ãŸããå
容ã®èª¬æã§ãïŒçžå¯Ÿäœçœ®ã瀺ããŸãïŒã [ã³ã³ãã³ãã¬ã€ã¢ãŠã]ãŠã£ã³ããŠã«æ°ãããããã¯ãè¿œå ãããŸãã åèšäºã¯MAML圢åŒïŒ.amlãã¡ã€ã«ïŒã§èšè¿°ãããŠãããxmlããŒã¹ã®åœ¢åŒã§ãã Sandcastle Help File Builderã«ã¯äºåå®çŸ©ããããã³ãã¬ãŒãã®ã»ãããä»å±ããŠãããèšäºãæžãéã®ããã¥ãŒã倧å¹
ã«ç°¡çŽ åããŸãã ç§ã¯äž»ã«
æŠå¿µãã³ãã¬ãŒãã䜿çšããŸãããããŸãäžè¬çã§ã¯ãããŸããã
åèšäºã®èª¬æã¯ãäžæã®èå¥åã§ãããããã¯IDã§å§ãŸããŸãã ãã®èå¥åã«åºã¥ããŠãåŸã§chmã«å
¥ãhtmlãã¡ã€ã«ãçæãããŸãã çæãããhtmlãã¡ã€ã«ã«ã¯ããTOPIC_ID.htmããšãã圢åŒã§ååãä»ããããŸãã ãã®ãããã¯IDã¯ãä»ã®èšäºããã®èšäºãŸãã¯ã³ãŒãå
ã®xmlã³ã¡ã³ããžã®ãªã³ã¯ã«ã䜿çšãããŸãã
èšäºãäœæããå ŽåããTOPIC_ID.amlããšããååã®ãã¡ã€ã«ã«ä¿åããããšããå§ãããŸãã äœææã«ããã¡ã€ã«ã®éåžžã®ååãããã«ç€ºãããšãã§ããŸãã
èšäºãç·šéãããšãã«åœ¹ç«ã€SHFBã®ã³ã³ãããŒã«ã®ããã€ããæ€èšããŠãã ããã
| ããã¥ã¡ã³ãã®éå§ããŒãžãèšå®ããŸãïŒè¡šç€ºãããã®ã¯
ããã¥ã¡ã³ããéãã
|
| APIèšè¿°ãæ¿å
¥ãããäœçœ®ãèšå®ããŸãã
xmlãã¡ã€ã«ããçæãããŸãã éžæãããŠãããªãã·ã§ã³ã«å¿ããŠã
APIã®èª¬æãæ¿å
¥ãããŸã
åãåŸããŸãã¯ãã®åãšããŠ
ã¢ã€ãã ã
|
| çŸåšã®èšäºããã¬ãã¥ãŒããŸãã
|
| ããã¥ã¡ã³ãã«èšäºãžã®ãªã³ã¯ãæ¿å
¥ããŸãã ãããã¯IDã䜿çš
ã¢ãã¬ã¹ãšããŠã
|
| èšäºã®ããŒã¯ã¢ããã«æšæºã¿ã°ãæ¿å
¥ããŸãã
|
ãšã³ãã£ãã£åç
§ãŠã£ã³ããŠïŒå³åŽã«ãããŸãïŒã䜿çšããŠãé¢æ°/ã¡ãœãããªã©ã®èª¬æãžã®ãªã³ã¯ãæ¿å
¥ã§ããŸãã ã³ãŒãããã®ãšã³ãã£ãã£ã ç§ã®æèŠã§ã¯ããã®ãªã³ã¯ãæ¿å
¥ããæ¹æ³ã¯ããŸã䟿å©ã§ã¯ãããŸãããæåã«èšäºã®ããã¹ããéãã次ã«Entity ReferenceãŠã£ã³ããŠãéããŠããããã®ãŠã£ã³ããŠã§ãšã³ãã£ãã£ã®éšåãŸãã¯ãã«ããŒã ãæžãããªã¹ãã§ç®çã®è¡ãèŠã€ããŠããã«ã¯ãªãã¯ããå¿
èŠããããŸã ããã¯ãã¹ãŠãã«ãŒãœã«äœçœ®ã®ãªã³ã¯ãèšäºã«æ¿å
¥ããããšããäºå®ã«ã€ãªãããŸãã ç§ã¯èªåã®æã§ãªã³ã¯ãæžãããã«ããã°ã§ãªã³ã¯ã®ããã¹ããèŠã€ããããšã奜ã¿ãŸãïŒä»¥åã®ãã«ãã®ãã°ã¯ããã¹ããšãã£ã¿ãŒã§éãããšãã§ããŸãïŒã
èšäºã«ã³ãŒããæ¿å
¥ããã«ã¯ã
<code>
䜿çšã
<code>
ã äŸïŒ
<ã³ãŒãèšèª= "cs" >
ãã©ã€ããŒã ãã€ã helloWorld ïŒ ïŒ
{
ã³ã³ãœãŒã« WriteLine ïŒ â Hello World ïŒ â ïŒ ;
}
</ã³ãŒã>
ç»åãæ¿å
¥ããã«ã¯ã次ã®æé ãå®è¡ããŸãã
- [ãããžã§ã¯ããšã¯ã¹ãããŒã©]ãŠã£ã³ããŠã§ã[è¿œå ]ã[æ¢åã®ã¢ã€ãã ]ã®é ã«éžæããç®çã®ç»åãéžæããŸãã
- è¿œå ãããã¡ã€ã«ã®ããããã£ã§ãBuildActionãImageã«å€æŽããImageIdããããã£ãé©åãªååã«å€æŽããŸãïŒãã®ç»åãžã®ãªã³ã¯ã§äœ¿çšãããŸãïŒã
ããã«ã次ã®ããã«èšäºã§ç»åã䜿çšã§ããŸãã
<mediaLink> <image xlinkïŒ href = "ImageId"é
眮= "center" / > < / / mediaLink>
æ®å¿µãªãããSHFBã®çŸåšã®ããŒãžã§ã³ã§ã¯ããšãã£ã¿ãŒã¯å®ç§ã«ã¯ã»ã©é ãç¶æ
ã§ãã ããšãã°ãã¿ã°ã¯èªåçã«éãããããŠã¹ã§å€ãã®ã¢ã¯ã·ã§ã³ãå®è¡ããå¿
èŠããããŸãïŒãããããŒã¯ãããŸããïŒããã¹ãŠã®æšæºã¿ã°ã«å¯Ÿå¿ããèŠçŽ ãããŒã«ããŒã«ããããã§ã¯ãããŸããã é説çã«ãamlãã¡ã€ã«ã䜿çšããã»ãšãã©ã®ã¢ã¯ã·ã§ã³ã§ã¯ãVisual Studioã䜿çšããæ¹ã䟿å©ã§ãã ãã¡ãããä»ã®äŸ¿å©ãªxml-editorã䜿çšããŠèšäºãæžãããšãã§ããŸãã
ããã¥ã¡ã³ãçšã®èšäºãæžããšãã®åºæ¬çãªããŒãºã«å¯Ÿãã解決çã説æããŸããã ãããã¯ãããããå匷ãããå Žåã¯ã次ã®ãªã³ã¯ããå§ãããŸãã
ãã«ãããã»ã¹ãžã®çµ±å
Visual Studioãœãªã¥ãŒã·ã§ã³ã«Sandcastle Help File Builderã®ãããžã§ã¯ããã¡ã€ã«ïŒ* .shfbprojïŒãå«ããããšãã§ããŸãããçŸæç¹ã§ã¯æ¬æ Œçãªãããžã§ã¯ããšããŠäœ¿çšããæ¹æ³ã¯ãããŸããã ã€ãŸãããã®ãããªãããžã§ã¯ãã®å
容ã¯è¡šç€ºã§ããŸããããããžã§ã¯ãã¯ãœãªã¥ãŒã·ã§ã³ã¢ã€ãã ã°ã«ãŒãã«ã®ã¿è¿œå ãããŸãã
è¿œå ã¯æ¬¡ã®ããã«è¡ãããŸãã
- ãœãªã¥ãŒã·ã§ã³ã«ã€ããŠã¯ã[è¿œå ]-> [æ¢åã®ã¢ã€ãã ...]ãéžæããããã¥ã¡ã³ããããžã§ã¯ããè¿œå ããŸãã ãœãªã¥ãŒã·ã§ã³ã¢ã€ãã ãã©ã«ããŒã«è¿œå ãããŸãã
- è¿œå ããã¢ã€ãã ãå³ã¯ãªãã¯ããŠã[ã¢ããªã±ãŒã·ã§ã³ããéã...]ãéžæããŸããéãããã€ã¢ãã°ã§ããSandcastle Help File Builder GUIããè¿œå ããããã©ã«ãã®ãšãã£ã¿ãŒãšããŠèšå®ããŸãã
ãã®åŸãããã¥ã¡ã³ããããžã§ã¯ããVisual Studioããéãããšãã§ããŸãã
ã³ãã³ãã©ã€ã³ããããã¥ã¡ã³ããäœæããæ¹ã䟿å©ã§ãã ãã®ãããªã¢ã»ã³ããªã¯ããã«ãåŸã€ãã³ããŸãã¯ãã®ä»ã®å Žåã«å®è¡ã§ããŸãã 次ã®ã³ãã³ãã䜿çšãããšãã³ãã³ãã©ã€ã³ããããã¥ã¡ã³ããåéããã®ã¯éåžžã«ç°¡åã§ãã
%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe" /p:Configuration=Release Help.shfbproj
ãã®è¡ã§ã¯ãHelp.shfbprojã¯ããã¥ã¡ã³ããããžã§ã¯ãã®ååã§ãã
ãã®èšäºãããããžã§ã¯ãã®ããã¥ã¡ã³ããæžãå§ããã®ã«åœ¹ç«ã€ããšãé¡ã£ãŠããŸãïŒãŸã ãããè¡ã£ãŠããªãå ŽåïŒã ããã¥ã¡ã³ããæžãããšã§é 匵ã£ãŠãã ããïŒ