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
- CodeCommentStatementCollection.cs
- OpCellTreeNode.cs
- ProfilePropertyNameValidator.cs
- ProfilePropertyNameValidator.cs
- FlowDocumentPaginator.cs
- EmptyCollection.cs
- VisualStyleElement.cs
- XmlDictionaryWriter.cs
- WebPartEditorCancelVerb.cs
- StaticDataManager.cs
- Simplifier.cs
- EntryPointNotFoundException.cs
- RightsDocument.cs
- PropagationProtocolsTracing.cs
- TextOptionsInternal.cs
- DesignerTextWriter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ServiceBehaviorElement.cs
- Blend.cs
- PointAnimationUsingKeyFrames.cs
- MDIControlStrip.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CodeCompileUnit.cs
- KnownTypesHelper.cs
- InfoCardAsymmetricCrypto.cs
- PartBasedPackageProperties.cs
- lengthconverter.cs
- MultiBinding.cs
- DataControlCommands.cs
- EntityDataSourceWrapperCollection.cs
- DBConnectionString.cs
- EntityContainerEmitter.cs
- CustomGrammar.cs
- ChannelManager.cs
- VirtualPathUtility.cs
- ListSourceHelper.cs
- ConcurrentQueue.cs
- ResourceBinder.cs
- ItemAutomationPeer.cs
- TypedReference.cs
- LocalizationParserHooks.cs
- InstanceNameConverter.cs
- SpecialNameAttribute.cs
- AbstractDataSvcMapFileLoader.cs
- ELinqQueryState.cs
- Listbox.cs
- DataObjectEventArgs.cs
- SmtpReplyReader.cs
- HttpBrowserCapabilitiesWrapper.cs
- MachineKey.cs
- XmlDocumentType.cs
- XmlSchemaExporter.cs
- DirectoryGroupQuery.cs
- FlowDocumentPaginator.cs
- String.cs
- ThicknessAnimationBase.cs
- FtpCachePolicyElement.cs
- UIPropertyMetadata.cs
- Group.cs
- SrgsDocumentParser.cs
- CodeLinePragma.cs
- Pool.cs
- DynamicMethod.cs
- ToolStripSeparator.cs
- CultureInfoConverter.cs
- DeobfuscatingStream.cs
- Processor.cs
- DataGridViewColumnStateChangedEventArgs.cs
- FilterEventArgs.cs
- StylusPointCollection.cs
- PersonalizationProvider.cs
- ChangesetResponse.cs
- KnownBoxes.cs
- CqlParser.cs
- RequiredFieldValidator.cs
- ProxyManager.cs
- VariantWrapper.cs
- SqlServices.cs
- LinqDataView.cs
- SignedPkcs7.cs
- MetadataPropertyAttribute.cs
- SrgsRuleRef.cs
- DataGridViewTextBoxColumn.cs
- InputProcessorProfiles.cs
- ProviderSettings.cs
- DelegateBodyWriter.cs
- ConcurrentDictionary.cs
- BuilderPropertyEntry.cs
- SystemParameters.cs
- EraserBehavior.cs
- SchemaTableOptionalColumn.cs
- SerializableAttribute.cs
- ObjectQueryProvider.cs
- HttpCachePolicy.cs
- RoleGroupCollection.cs
- Operand.cs
- TraceSwitch.cs
- ServiceObjectContainer.cs
- ManagedFilter.cs
- SiteMapNodeItemEventArgs.cs