Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / StrokeDescriptor.cs / 1 / StrokeDescriptor.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
using System;
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class StrokeDescriptor
{
private System.Collections.Generic.List _strokeDescriptor = new System.Collections.Generic.List();
private uint _Size = 0;
public uint Size
{
get
{
return _Size;
}
set
{
_Size = value;
}
}
public System.Collections.Generic.List Template
{
get
{
return _strokeDescriptor;
}
}
public StrokeDescriptor()
{
}
public bool IsEqual(StrokeDescriptor strd)
{
// If the no of templates in them are different return false
if( _strokeDescriptor.Count != strd.Template.Count )
return false;
// Compare each tag in the template. If any one of them is different, return false;
for( int i = 0; i < _strokeDescriptor.Count; i++ )
if( _strokeDescriptor[i] != strd.Template[i] )
return false;
return true;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrivilegeNotHeldException.cs
- FixedSOMTextRun.cs
- HtmlHistory.cs
- HelpInfo.cs
- DocumentPaginator.cs
- Int16.cs
- CssStyleCollection.cs
- Function.cs
- XmlWhitespace.cs
- ApplicationProxyInternal.cs
- GridViewRowCollection.cs
- ExceptionUtil.cs
- DocumentPage.cs
- AuthenticateEventArgs.cs
- BoundField.cs
- BooleanFunctions.cs
- TabItem.cs
- ComponentDispatcher.cs
- BooleanAnimationUsingKeyFrames.cs
- _BufferOffsetSize.cs
- CmsInterop.cs
- ControlCachePolicy.cs
- WebPartDisplayMode.cs
- HebrewNumber.cs
- SessionPageStateSection.cs
- SortDescriptionCollection.cs
- GenericsInstances.cs
- ManipulationDevice.cs
- VisualBasicHelper.cs
- SqlTriggerContext.cs
- WebPartEditorCancelVerb.cs
- WebHttpBinding.cs
- PropertyInfoSet.cs
- DocumentPageTextView.cs
- CreateUserErrorEventArgs.cs
- PoisonMessageException.cs
- ContentHostHelper.cs
- CookieHandler.cs
- AlphabeticalEnumConverter.cs
- HttpRequestWrapper.cs
- ErrorStyle.cs
- CultureSpecificCharacterBufferRange.cs
- HTTPNotFoundHandler.cs
- RemotingClientProxy.cs
- ConnectionConsumerAttribute.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- TagMapCollection.cs
- WebServiceParameterData.cs
- QueryMath.cs
- PrinterUnitConvert.cs
- DBDataPermissionAttribute.cs
- FixedDocument.cs
- GraphicsState.cs
- DataSourceComponent.cs
- DocumentSchemaValidator.cs
- ReaderOutput.cs
- UnsafePeerToPeerMethods.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- HMACSHA256.cs
- EntityDataSourceQueryBuilder.cs
- CodeVariableReferenceExpression.cs
- ByteRangeDownloader.cs
- Soap11ServerProtocol.cs
- XsdDuration.cs
- EmbeddedObject.cs
- AdCreatedEventArgs.cs
- EnterpriseServicesHelper.cs
- TableLayoutSettingsTypeConverter.cs
- EntityDesignerBuildProvider.cs
- _BufferOffsetSize.cs
- TypefaceMap.cs
- HttpProfileGroupBase.cs
- GrammarBuilderBase.cs
- CorrelationManager.cs
- SqlErrorCollection.cs
- ObjectQuery.cs
- DataGridViewRowCancelEventArgs.cs
- Matrix3D.cs
- __FastResourceComparer.cs
- RectangleF.cs
- InternalTypeHelper.cs
- DataSvcMapFile.cs
- CustomErrorsSection.cs
- LeafCellTreeNode.cs
- DefaultParameterValueAttribute.cs
- InstanceDescriptor.cs
- SchemaAttDef.cs
- TextBoxAutoCompleteSourceConverter.cs
- WindowsComboBox.cs
- ThousandthOfEmRealDoubles.cs
- ELinqQueryState.cs
- RawStylusInput.cs
- SimpleMailWebEventProvider.cs
- RegexStringValidatorAttribute.cs
- TextEditorSpelling.cs
- Label.cs
- IndexedGlyphRun.cs
- XmlDictionaryString.cs
- StateRuntime.cs
- CodeEventReferenceExpression.cs